class FileSerializationPropertyMapper extends ClassMetadataReflectionPropertyMapper (View source)

Extension of the ClassMetadataReflectionPropertyMapper that handle object associations and embedded obect properties

Methods

fetchObjectAssociationProperty($object, $fieldName)

This method override transforms association property values to association identifiers

serializeObjectEmbeddedObjectProperty($value, $fieldName, $type)

{@inheritdoc}

unserializeEmbeddedObject($value, $fieldName, $expectedClassName)

This method override instanciate an object of the type of the field and set its properties using reflection service.

Details

protected fetchObjectAssociationProperty($object, $fieldName)

This method override transforms association property values to association identifiers

{@inheritdoc}

Parameters

$object
$fieldName

See also

\NoreSources\Persistence\Mapping\ClassMetadataReflectionPropertyMapper::fetchObjectAssociationProperty()

protected serializeObjectEmbeddedObjectProperty($value, $fieldName, $type)

{@inheritdoc}

Parameters

$value
$fieldName
$type

See also

\NoreSources\Persistence\Mapping\ClassMetadataReflectionPropertyMapper::serializeObjectEmbeddedObjectProperty()

protected unserializeEmbeddedObject($value, $fieldName, $expectedClassName)

This method override instanciate an object of the type of the field and set its properties using reflection service.

{@inheritdoc}

Parameters

$value
$fieldName
$expectedClassName

See also

\NoreSources\Persistence\Mapping\ClassMetadataReflectionPropertyMapper::unserializeEmbeddedObject()