Friday, September 4, 2009

Re: $this->Model->Behaviors->detach('Translate'); causes Segmentation Fault

hi again

i tracked it down to the line

if (isset($this->{$name})) {

in the behavior.php

if this helps anyone

pr($this->{$name}) works fine

regards

On 4 Sep., 00:08, "blickensdoer...@googlemail.com"
<blickensdoer...@googlemail.com> wrote:
> hi all
>
> i'm running into a very strange problem:
>
> i've got a model running with Translate Behavior and so far no
> Problems. now, at some point where i do a Model->save() i want to
> detach the Translate Behavior in before, because otherwise my foreign
> keys in the table get lost.
>
> when doing so, i get a segmentation fault...
>
> anyone has an idea ?
>
> thanks a lot!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: