Exemplo n.º 1
0
 /**
  * Returns the database connection for this event.
  *
  * @return Connection
  */
 public function getConnection()
 {
     return $this->manager->getConnection();
 }
Exemplo n.º 2
0
 /**
  * Creates a new Repository.
  *
  * @param EntityManager $manager
  * @param Metadata      $metadata
  */
 public function __construct(EntityManager $manager, Metadata $metadata)
 {
     $this->manager = $manager;
     $this->connection = $manager->getConnection();
     $this->metadata = $metadata;
 }