diff --git a/en/reference/configuration.rst b/en/reference/configuration.rst index 6a2a192b5..1724886cb 100644 --- a/en/reference/configuration.rst +++ b/en/reference/configuration.rst @@ -471,6 +471,29 @@ proxy classes like so: $ ./doctrine orm:generate-proxies +Autoloading Proxies +------------------- + +When you deserialize proxy objects from the session or any other storage +it is necessary to have an autoloading mechanism in place for these classes. +For implementation reasons Proxy class names are not PSR-0 compliant. This +means that you have to register a special autoloader for these classes: + +.. code-block:: php + + addDriver($xmlDriver, 'Doctrine\Tests\Models\Company'); $chain->addDriver($yamlDriver, 'Doctrine\Tests\ORM\Mapping');