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