On 14 oct, 23:00, BeroFX <[email protected]> wrote:
> How can I select records where a column doesn't contain any value,
> like ''.
>
> Doing it like this $this->Document->find('all', array
> ('conditions'=>array('Document.title'=>''))); produces a WHERE
> `Document`.`title` = NULL query and that's not right.

are you sure that example matches your code? cake would normally
generate:
Model.field IS NULL
OR
Model.field = ""

in any event you could use 'Document.title = ""'

AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to