Example #1
0
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->{'id'};
     $criteria = new TCriteria();
     $criteria->add(new TFilter('project_id', '=', $id));
     $repository = new TRepository('Backlog');
     $repository->delete($criteria);
     parent::delete($id);
 }
Example #2
0
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->logra_id;
     $repository = new TRepository('LogradouroBairro');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('tb_logradouros_logra_id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
Example #3
0
 /**
  * Delete an Active Record object from the database
  * @param [$id]     The Object ID
  * @exception       Exception if there's no active transaction opened
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->{'id'};
     $note_rep = new TRepository('Note');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('id_issue', '=', $id));
     $note_rep->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
Example #4
0
 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     // delete the related System_userSystem_user_group objects
     $id = isset($id) ? $id : $this->id;
     $repository = new TRepository('SystemStock');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
Example #5
0
 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     // delete the related System_groupSystem_program objects
     $id = isset($id) ? $id : $this->id;
     $repository = new TRepository('SystemGroupProgram');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('system_group_id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
 public function delete($id = NULL)
 {
     //sobrescrito!
     $id = isset($id) ? $id : $this->id;
     $repository = new TRepository('TurmaDisciplina');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('turma_id', '=', $id));
     $repository->delete($criteria);
     $repository = new TRepository('AlunoTurma');
     $repository->delete($criteria);
     parent::delete($id);
 }
Example #7
0
 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->id;
     // delete the related Item objects
     $repository = new TRepository('Item');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('srp_id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
Example #8
0
 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->id;
     parent::deleteComposite('CustomerSkill', 'customer_id', $id);
     parent::deleteComposite('Contact', 'customer_id', $id);
     // delete the object itself
     parent::delete($id);
 }
Example #9
0
 /**
  * Delete the book and its aggregates
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->{'id'};
     $criteria = new TCriteria();
     $criteria->add(new TFilter('book_id', '=', $id));
     $repository = new TRepository('BookAuthor');
     $repository->delete($criteria);
     $repository = new TRepository('BookSubject');
     $repository->delete($criteria);
     $repository = new TRepository('Item');
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
Example #10
0
 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     SystemChangeLog::register($this, $this->toArray(), array());
     // delete the object itself
     parent::delete($id);
 }
Example #11
0
 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     // delete the related CustomerSkill objects
     $id = isset($id) ? $id : $this->id;
     $repository = new TRepository('CustomerSkill');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('customer_id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
Example #12
0
 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->id;
     parent::deleteComposite('PedidosProdutos', 'pedidos_id', $id);
     // delete the object itself
     parent::delete($id);
 }
Example #13
0
 public function delete($id = NULL)
 {
     parent::deleteComposite('endereco', 'idpessoa', $id);
     parent::deleteComposite('contato', 'idpessoa', $id);
     parent::delete($id);
 }
Example #14
0
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->imovel_id;
     $repository = new TRepository('ImovelProprietarios');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('tb_imovel_imovel_id', '=', $id));
     $repository->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }
 /**
  * Delete the object and its aggregates
  * @param $id object ID
  */
 public function delete($id = NULL)
 {
     parent::deleteComposite('CustomerSkill', 'customer_id', $id);
     // delete the object itself
     parent::delete($id);
 }
Example #16
0
 /**
  * Delete an Active Record object from the database
  * @param [$id]     The Object ID
  * @exception       Exception if there's no active transaction opened
  */
 public function delete($id = NULL)
 {
     $id = isset($id) ? $id : $this->{'id'};
     $member_project_rep = new TRepository('MemberProject');
     $criteria = new TCriteria();
     $criteria->add(new TFilter('id_member', '=', $id));
     $member_project_rep->delete($criteria);
     // delete the object itself
     parent::delete($id);
 }