Sorted it... I'd made a tiny modification to cake core (dbo_source) to fix another issue.
Note to self: Serves you right! On Jul 28, 11:25 am, "rich...@home" <[email protected]> wrote: > Bit of an odd one this, and it has only started happening recently in > an application I'm building... > > I'm using CakePHP 1.2.3.8166 > > The following validation rule: > > var $validate = array( > "name"=>array( > "required"=>array( > "rule"=>array("minLength", 1), > "message"=>"cannot be blank", > "required"=>true > ), > "unique"=>array( > "rule"=>"isUnique", > "message"=>"already exists" > ) > ) > ); > > Produces the following (invalid) query when the form is validated: > > SELECT COUNT(*) AS `count` FROM `canvatex_textures` AS > `CanvatexTexture` WHERE `CanvatexTexture`.`name` IS '' > > (The 'IS' part is invalid - should be '='). > > This is happening across every model that checks for 'isUnique'. > > I've got a couple of other apps in development using the same version > of Cake that don't exhibit this problem. > > I've cleared out the caches and come up blank. > > wtf have I broken? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
