Wednesday, August 13, 2014

Re: 3.x - en/disable

If you only care about callbacks use $table->eventManager()->detach($beahviorObject)

On Wednesday, August 13, 2014 1:34:33 PM UTC+2, Thomas von Hassel wrote:
Hi

I just mean that if i remove the behaviour, do some stuff, and then add it again, i would have to add it with the same options as i gave it in Table::initialize()


/thomas




On 13 Aug 2014, at 13:31, José Lorenzo <jose.zap@gmail.com> wrote:

> Not sure what you meant
>
> On Wednesday, August 13, 2014 1:03:05 PM UTC+2, Thomas von Hassel wrote:
> ok, that's a bit more verbose if you have something like translate where you define translated fields :)
>
> On 13 Aug 2014, at 13:01, José Lorenzo <jose.zap@gmail.com> wrote:
>
>> unload and load again
>>
>> On Wednesday, August 13, 2014 10:48:02 AM UTC+2, Thomas von Hassel wrote:
>> Hey
>>
>> In 2.x you could temporarily disable a behaviour like this:
>>
>> `$this->Behaviors->disable('Translate');`
>>
>> Is that coming back to 3.x or should i just remove and add them when needed ?
>>
>> /thomas
>>
>>
>>
>>
>> --
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>
>> ---
>> You received this message because you are subscribed to the Google Groups "CakePHP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
>> To post to this group, send email to cake-php@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/d/optout.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: