I am getting a notice:

Notice: serialize(): "sessionverses" returned as member variable from
__sleep() but does not exist in
/home/cordoval/sites-2/memorizescripture/vendor/symfony/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php
on line 136 Notice: serialize(): "chapter" returned as member variable
from __sleep() but does not exist in
/home/cordoval/sites-2/memorizescripture/vendor/symfony/src/Symfony/Component/Security/Core/Authentication/Token/AbstractToken.php
on line 136

I found :
To summerize: in a given class hierarchy in which parent classes
contain private member variables, those variables are serialized when
__sleep() is not defined. However, once __sleep() is defined, there is
no way to make those private member variables serialized as well. From
that point on, serialization is performed from the visibility scope of
the subclass. It is particularly important to note this little quirk
when designing base classes that their derivables may be serialized,
or when subclassing an external library class.

However my question is how do i avoid this, since this is in twig that
I am doing lazy loading with user then user.sessions, then
session.sessionverses, then sessionverse.verse.Chapter etc

Can someone please hint? thanks

Luis

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

Reply via email to