public function removeInvoiceRows(array $invoiceRowIds) { foreach ($invoiceRowIds as $id) { $invoiceRow = $this->getOneObjectByField(Document\Row::getClass(), 'id', $id); $this->deleteObject($invoiceRow); } }
public function getRowById($id) { return $this->entityManager->getRepository(Row::getClass())->findOneBy(array('id' => $id)); }