Doctrine proxy serialization issue with Zend

175 Views Asked by At

I have a problem with zf2 authentication. The problem occurs when zend try to serialize Doctrine entity which has attribute defined as Doctrine Proxy. I got PHP Warning: unserialize(): Function spl_autoload_call() hasn't defined the class it was called

Do you have any idea?

1

There are 1 best solutions below

1
Marcel Djaman On

For doctrine entity/document serialisation purpose i use this module https://github.com/Spea/JMSSerializerModule. Hope it will help