schmittjoh/serializer — pull request #111 by olaurendeau (2013-07-05 14:38:10+00:00)
Title: DoctrineObjectConstructor - NamingStrategy and SerializedName

Using DoctrineObjectConstructor in our projects we faced an issue because our primary keys are post-fixed by the name of the entity.
So the primary key serialized name of an entity "Entity" is "idEntity" as DoctrineObjectConstructor is not using the namingStrategy of the visitor. For example using camelCase strategy, he failed to match id_entity in the $data array.
He also wasn't able to handle custom serializedName.
And finally if primary key exist in data array but is null, he was trying to load entity with a null value and failed.