In Cake, the WHERE clause is constructed from the "conditions" element by combining keys and values. This means that you can skip providing keys if you want. For example:.
array('conditions' => array('User.id'=>1))
completely equivalent
array('conditions' => array('User.id = 1'))
Essentially, you can only solve your problem with this:
$this->User->find('all', array('conditions' => array('User.site_url IS NOT NULL')));
GwynBleidd Sep 28 '11 at 15:04 2011-09-28 15:04
source share