Example #1
0
 public function __construct(ConnectionInterface $conn, Configuration $config, EventDispatcherInterface $dispatcher)
 {
     $this->conn = $conn;
     $this->config = $config;
     $this->dispatcher = $dispatcher;
     $this->repoFactory = $config->getRepositoryFactory();
     $this->uow = new UnitOfWork($this->conn, $config->getIdentityMap(), $config->getMetadataRegistry(), $config->getProxyFactory(), $dispatcher);
 }