Example #1
0
 function __construct(Database $database, DaoFactory $daoFactory)
 {
     $this->logger = Logger::getLogger("main");
     $this->database = $database;
     $this->reflectionEntityClass = new ReflectionClass($this->getEntityClass());
     $this->table = $database->build($this->getEntityClass());
     $this->daoFactory = $daoFactory;
 }