I have a call
$conditions = array();
$conditions[] = array('controller' => $this-
>params['controller'], 'action' => $this->params['action']);
$conditions[] = array('controller' => $this-
>params['controller'], 'action' => '');
$conditions[] = array('controller' => '', 'action' => '');
$this->blocksData = $model->find('all', array('order' =>
'order ASC',
'conditions'
=> array('enabled' => '1',
array('or' => $conditions))));
here's what i get after call
SELECT ...... WHERE `enabled` = 1 AND ((((`controller` = 'media') AND
(`action` = 'index'))) OR (((`controller` = 'media') AND (`action` =
''))) OR (((`controller` = '') AND (`action` = '')))) ORDER BY `order`
ASC
Is this a bug or my mistake?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---