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