Beispiel #1
0
 public function __construct()
 {
     $this->connection = Connector::getConnection();
     $this->builder = $this->connection->createQueryBuilder();
     $this->setTable(get_class($this) . "s");
     $this->setPrimary("id");
 }
Beispiel #2
0
 public function __construct(Connector $connector)
 {
     $this->connection = $connector->getConnection();
     $this->prefix = $connector->getConfig()->get('prefix');
 }