Le 28/06/2011 12:11, Grégoire Passault a écrit :
Hi,

I faced an issue this morning:

I was using private properties for my entities, and the Security Component got problem during the serialization of my users because there was proxy classes which, inheriting from the entities class, could not be serialized (see http://php.net/manual/en/language.oop5.magic.php)

That's why I think that the Symfony documentation <http://symfony.com/doc/current/book/doctrine.html> should strongly encourage us to use protected properties.
the Symfony doc about Security recommend too implement the Serializable interface to avoid issues with the serialization (and avoiding serializing relations which would make the serialized token huge)

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to