本文整理汇总了PHP中TRecord::deleteComposite方法的典型用法代码示例。如果您正苦于以下问题:PHP TRecord::deleteComposite方法的具体用法?PHP TRecord::deleteComposite怎么用?PHP TRecord::deleteComposite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TRecord
的用法示例。
在下文中一共展示了TRecord::deleteComposite方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
/**
* 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);
}
示例2: onBeforeDelete
public function onBeforeDelete($object)
{
parent::deleteComposite('telefone', 'clientes_id', $object->id);
parent::deleteComposite('email', 'clientes_id', $object->id);
return $object;
}
示例3: delete
public function delete($id = NULL)
{
parent::deleteComposite('endereco', 'idpessoa', $id);
parent::deleteComposite('contato', 'idpessoa', $id);
parent::delete($id);
}
示例4: delete
/**
* 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);
}
示例5: delete
/**
* 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);
}