It happens when Saving a Model! I've no beforeX-Filters, I also had debug($this-data) right before saving, but each Model (Accept the hasAndbelongToMany) have an id!
thx Aurelius On 31 Mrz., 02:32, mscdex <[email protected]> wrote: > On Mar 30, 6:11 pm, Marcelo Andrade <[email protected]> wrote: > > > > > On Mon, Mar 30, 2009 at 6:44 PM, Aurelius <[email protected]> > > wrote: > > > > What does that mean, and where is the problem? > > > Notice (8): Undefined index: id [CORE/cake/libs/model/model.php, line > > > 1281...on line 77 > > > > That's line 77: > > > if ($this->User->save ( $this->data, true , array ( 'firstname', > > > 'lastname', '....' ))) { > > > ... } > > > > What's wrong? > > > It's hard to say. Maybe you're in an edit action and > > your $this->data doesn't contain the desired record id. > > > Please, tell us more about your scenario. > > > Best regards. > > > -- > > MARCELO DE F. ANDRADE > > Belem, PA, Amazonia, Brazil > > Linux User #221105 > > >http://mfandrade.wordpress.com > > Also, do you have any beforeValidate or beforeSave callbacks that are > changing the data? > Sounds like the data for your primary key for your User model is being > unset somewhere possibly. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
