how can I disable a record hook
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 |
From: Qineer <qin...@gmail.com>
Date: Thu, 2 Jul 2009 22:53:18 -0700 (PDT)
Local: Fri 3 July 2009 06:53
Subject: how can I disable a record hook
for example:
class Table extends baseTable()
{
public function preSave(){
}
}
$table = new Table();
$table->name = 'new name';
$table->save();
You must Sign in before you can post messages.
You do not have the permission required to post.
|
 |
From: Qineer <qin...@gmail.com>
Date: Thu, 2 Jul 2009 22:56:56 -0700 (PDT)
Local: Fri 3 July 2009 06:56
Subject: Re: how can I disable a record hook
go on, In some times, I don't want to call the preSave method, How
can I disable this hook?
However, I know how to disable an record listener, like this: $table-
>getRecordListener()->setOption('disabled', true);
On Jul 3, 1:53 pm, Qineer <qin...@gmail.com> wrote:
> for example:
> class Table extends baseTable()
> {
> public function preSave(){
> }
> }
> $table = new Table();
> $table->name = 'new name';
> $table->save();
You must Sign in before you can post messages.
You do not have the permission required to post.
|
|
|