Wherever I put this debug($this->MyModel::schema()) i get: T_PAAMAYIM_NEKUDOTAYIM php error :(
On 8 Apr, 21:23, cricket <[email protected]> wrote: > On Fri, Apr 8, 2011 at 2:28 PM, Mariano C. <[email protected]> wrote: > > I suppose, I've just made a dump > > What is the primary key for the model? Is it id? The error is telling > you that the model thinks the PK is id but that the database is saying > something else. Put debug($this->YourModel::schema()) somewhere so you > can see what the DB source is returning. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
