Exemple #1
0
 /**
  * 
  * @param EntityManagerInterface $em
  * @param string $proxyDirectory
  * @param string $proxyNamespace
  * @param bool $autoGenerate
  */
 public function __construct(EntityManagerInterface $em, $proxyDirectory, $proxyNamespace, $autoGenerate = true)
 {
     $proxyGenerator = new ProxyGenerator($proxyDirectory, $proxyNamespace);
     $proxyGenerator->setPlaceholder('baseProxyInterface', 'Pasinter\\OHM\\Proxy\\ProxyInterface');
     parent::__construct($proxyGenerator, $em->getMetadataFactory(), $autoGenerate);
     $this->em = $em;
     $this->proxyDirectory = $proxyDirectory;
     $this->proxyNamespace = $proxyNamespace;
 }