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