I've just added a small addition to the note about serialization in the docs
emphasizing the importance of implementing the Serializable interface,
especially if you have a parent class with private properties.

Thanks!

Ryan Weaver
US Office Head & Trainer - KnpLabs - Nashville, TN
http://www.knplabs.com <http://www.knplabs.com/en>
http://www.thatsquality.com
Twitter: @weaverryan


On Tue, Jun 28, 2011 at 5:19 AM, Christophe COEVOET <s...@notk.org> wrote:

> **
> 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 symfony-devs@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-devs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-devs?hl=en
>

-- 
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 symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to