Skip to content


DDC-2399: unserializing returns proxyclass name with slashes #3109

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user quintenvk:

I serialize a "user"-entity using the following code:

$user->getBusinessid()->getId(); //this is necessary to load the proxy
$_SESSION['user'] = serialize($user);

When I unserialize said entity with this code:

$em = self::getEntityManager();
$user = unserialize($_SESSION['user']);
return $em->merge($user);

I get an error like this:
require(): Failed opening required './core/project/Proxy/CG/core/project/Entity/Businesses.php' .

The thing is that everything after CG should not have any forward slashes. In that case the path would be completely correct.


Comment created by @ocramius:

There's an appositely coded autoloader in the ORM in 2.3 ( ) and in common in 2.4-RC ( ). Proxies are not PSR-0 compliant


Issue was closed with resolution "Invalid"


Comment created by quintenvk:

Ah, I hadn't found anything about that. Thank you!

@Ocramius Ocramius was assigned by doctrinebot
@doctrinebot doctrinebot closed this
@doctrinebot doctrinebot added the Bug label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.