_init('vertex_taxrequest', 'request_id'); } /** * Delete records in a table based on the collection passed in * * @param LogEntry\Collection $collection * @throws CouldNotDeleteException */ public function deleteByCollection($collection) { $query = $collection->getSelect()->deleteFromSelect('main_table'); try { $this->getConnection()->query($query); } catch (\Exception $e) { throw new CouldNotDeleteException(__('%1 could not delete log entries', __CLASS__), $e); } } }