public getConnection ( ) : Doctrine\DBAL\Connection | ||
리턴 | Doctrine\DBAL\Connection |
public function getConnection()
{
return $this->conn;
}
public function __construct(EntityManager $enm, Writer $logger) { $this->evm = $enm->getEventManager(); //Unused, for now $this->enm = $enm; $this->logger = $logger; $this->connection = $enm->getConnection(); $enm->getConnection()->getConfiguration()->setSQLLogger($this); }