Missing __doctrineLoad__() function declaration
opened this issue · comments
Deleted user commented
Hi,
the function in the doctrineLoad() doesn't exist, when loading a object by the proxy factory from the couchdb.
Attempted to call an undefined method named "__doctrineLoad__" of class "CouchDBProxies\__CG__\__CLASS__
After removing the doctrineLoad from the CouchDB DocumentManager, it works:
from
/**
* Initialize an object that is a lazy load proxy, or do nothing.
*
* @param object $obj
*/
public function initializeObject($obj)
{
if ($obj instanceof PersistentCollection) {
$obj->initialize();
} else if ($obj instanceof Proxy\Proxy) {
$obj->__doctrineLoad__();
}
}
to
/**
* Initialize an object that is a lazy load proxy, or do nothing.
*
* @param object $obj
*/
public function initializeObject($obj)
{
if ($obj instanceof PersistentCollection) {
$obj->initialize();
}
}
Is there a need for this function?
Marco Pivetta commented
Should probably be $obj->__load()