コード例 #1
0
 /**
  * @param  QueryBuilder     $queryBuilder
  * @param  Table            $table
  * @param  array            $criteria
  * @return AdapterInterface
  */
 protected function getAdapter(QueryBuilder $queryBuilder, Table $table, array $criteria)
 {
     if (!$this->adapter) {
         $this->adapter = new DoctrineDbalAdapter($queryBuilder, function ($queryBuilder) use($table, $criteria) {
             return $table->getQueryCount($criteria);
         });
     }
     return $this->adapter;
 }
コード例 #2
0
 /**
  * @param int $id
  */
 public function delete($id)
 {
     $this->table->delete($id);
 }