Doctrine\ORM\Proxy\ProxyFactory::generateProxyClasses
Generates proxy classes for all given classes.
Signature
public function generateProxyClasses(array
$classes,
[string
$toDir = null] )
Parameters
$classes
— array- The classes (ClassMetadata instances) for which to generate proxies.
$toDir
— string- The target directory of the proxy classes. If not specified, the
directory configured on the Configuration of the EntityManager used
by this factory is used.
Returns
- int
- Number of generated proxies.