Doctrine\ORM\Proxy\ProxyFactory::__construct
Initializes a new instance of the <tt>ProxyFactory</tt> class that is connected to the given <tt>EntityManager</tt>.
Signature
public function __construct(EntityManager
$em,
[string
$proxyDir = false,
[string
$proxyNs = false,
[boolean
$autoGenerate = false]]] )
Parameters
$em
—
Doctrine\ORM\EntityManager
- The EntityManager the new factory works for.
$proxyDir
—
string
- The directory to use for the proxy classes. It must exist.
$proxyNs
—
string
- The namespace to use for the proxy classes.
$autoGenerate
—
boolean
- Whether to automatically generate proxy classes.