示例#1
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);
 }
 public function onBeforeDelete($object)
 {
     parent::deleteComposite('telefone', 'clientes_id', $object->id);
     parent::deleteComposite('email', 'clientes_id', $object->id);
     return $object;
 }
示例#3
0
 public function delete($id = NULL)
 {
     parent::deleteComposite('endereco', 'idpessoa', $id);
     parent::deleteComposite('contato', 'idpessoa', $id);
     parent::delete($id);
 }
示例#4
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);
 }
 /**
  * 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);
 }