public function entityTo(string $propertyName)
    {
        $idString = implode(':', [$this->definition->getClassName(), __CLASS__, $this->relationCount++]);
        $this->readDefinition->relation($propertyName)
            ->asCustom(new EmbeddedObjectRelation($idString, new EmbeddedMapperProxy($this->mapper)));
    }
public function entityTo(string $propertyName)
    {
        $idString = implode(':', [$this->definition->getClassName(), __CLASS__, $this->relationCount++]);
        $this->readDefinition->relation($propertyName)
            ->asCustom(new EmbeddedObjectRelation($idString, new EmbeddedMapperProxy($this->mapper)));
    }
public function entityTo ( string $ propertyName ) { $ idString = implode ( ':' , [ $ this -> definition -> getClassName ( ) , __CLASS__ , $ this -> relationCount ++ ] ) ; $ this -> readDefinition -> relation ( $ propertyName ) -> asCustom ( new EmbeddedObjectRelation ( $ idString , new EmbeddedMapperProxy ( $ this -> mapper ) ) ) ; }
Maps the entity instance to the property
of the read model.

@param string $propertyName

@return void
Maps the entity instance to the property of the read model .