/** * @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; }
/** * @param int $id */ public function delete($id) { $this->table->delete($id); }