本文整理匯總了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);
}