Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion how can I disable a record hook

View Parsed - Show only message text

MIME-Version: 1.0
Received: by 10.101.1.6 with SMTP id d6mr244976ani.22.1246600616153; Thu, 02 
	Jul 2009 22:56:56 -0700 (PDT)
Date: Thu, 2 Jul 2009 22:56:56 -0700 (PDT)
In-Reply-To: <13812d7a-aa40-465d-a8dc-40a3a2a4f565@u16g2000pru.googlegroups.com>
X-IP: 211.152.35.162
References: <13812d7a-aa40-465d-a8dc-40a3a2a4f565@u16g2000pru.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.11) 
	Gecko/2009060215 Firefox/3.0.11,gzip(gfe),gzip(gfe)
Message-ID: <98a32e9a-5e9c-4e35-b000-86450f073cc9@t11g2000prh.googlegroups.com>
Subject: Re: how can I disable a record hook
From: Qineer <qin...@gmail.com>
To: doctrine-user <doctrine-user@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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=A0pm, Qineer <qin...@gmail.com> wrote:
> for example:
>
> class Table extends baseTable()
> {
> =A0 =A0 public function preSave(){
>
> =A0 =A0 }
>
> }
>
> $table =3D new Table();
> $table->name =3D 'new name';

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google