public function mapOneReference(ClassMetadata $class)
    {
        $this->reference = true;
        $this->type      = self::TYPE_ONE;

        $this->mapAttribute($class);
    }
public function mapOneReference(ClassMetadata $class)
    {
        $this->reference = true;
        $this->type      = self::TYPE_ONE;

        $this->mapAttribute($class);
    }
public function mapOneReference ( ClassMetadata $ class ) { $ this -> reference = true ; $ this -> type = self :: TYPE_ONE ; $ this -> mapAttribute ( $ class ) ; }
Map this property as a single document reference.

@param ClassMetadata $class

@return void
Map this property as a single document reference .