On 9/25/06, luis <[EMAIL PROTECTED]> wrote: > > I've created a new field in a table but Cake does not include this > field in the INSERT querys. It does in View (findAll) but not for the > Add (save) > I've added the field in the View form and debuged that the controller > is recieving it. > How can I tell Cake that I have a new field in a table? It is supposed > to recognise it auto doesn't it? >
Hi Luis. As far as I can tell you don't have to tell Cake that you've done *anything* to a table, but I will give you my now-infamous suggestions on fixing the problem: 1) what version of CakePHP are you using (please don't say "the latest", version number is much more helpfull) 2) have you turned on debug mode in app/config/core.php 3) have you deleted any files sitting in app/tmp that may be messing things up The biggest thing is item #2, in that setting debug to 2 will stop the DB stuff from caching anything and should give you a much clearer picture. You should only ever set debug to 0 when you've got your application in production mode. Hope that helps. -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
