Ya.. These function is useful to check the array format and query errors. How about those silent failures? I have encountered situations when I used Model::Save() and practically nothing happened? No query, No message, No warning, No notice...
Do you think I should raise this up to the developers to include some kind of notice in every query? Example: "NOTICE: Post/comments was not saved because field does not exist in database table `Posts`" "NOTICE: Post/id was not saved because field is set to auto-increment" "NOTICE: User/age was converted from float to integer because field datatype is TINYINT" It would be great way to debug our applications. Well, what do you guys think? On Dec 28, 4:39 pm, lucaspirola <[EMAIL PROTECTED]> wrote: > try using pr($this->data); > sometimes help... > > On Dec 28, 1:11 am, ProFire <[EMAIL PROTECTED]> wrote: > > > > > True True! > > > It's still best to look at the source code to find out the possible > > errors. > > Is there a way to detect and output errors when they occur? > > > Like if I wanted to save, but no insert/update query was called, I > > would like an output saying "insert fail because XXX is null" or > > something similar... > > > On Dec 28, 12:39 am, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> > > wrote: > > > > Hi ProFire, > > > > I get this feeling that asking that question is somewhat similar to > > > asking: "Causes of my-car-won't-start", there are endless > > > possibilities. I guess the best way to find out yourself is to look at > > > the source code of Model::save()- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
