BeSimple/BeSimpleSoapBundle — Issue #25: Embedded documents loading
Author: feufy78
Created: 2012-01-06 15:49:07+00:00
State: open

Hi, I'm using Doctrine ODM with mongoDB.
This webservice will manage users and their resumes.
I've successfully created a soap webservice to do some basic operations on simple documents.
However I've have a problem when it comes to work with embedded documents.

Each time I try to load a document without the embedded document (A user without any attached resume), an error is thrown:
request.CRITICAL: ErrorException: Warning: spl_object_hash() expects parameter 1 to be object, null given in /var/www/Symfony/vendor/bundles/BeSimple/SoapBundle/ServiceBinding/RpcLiteralResponseMessageBinder.php line 66 (uncaught exception) at /var/www/Symfony/vendor/symfony/src/Symfony/Component/HttpKernel/Debug/ErrorHandler.php line 65 [] []

If I try to load a document with the embedded document (A user with an attched resume) the the service works fine and return a User object with a Resume Object inside it.

Thx in advance for your help.