fuel/orm — Issue #121: Conditions wrap value in backticks
Author: phil-lavin
Created: 2011-11-15 08:58:25+00:00
State: open

```php
'cms_pages' => array(
'key_from' => 'id',
'key_through_from' => 'hotel_id',
'table_through' => 'hotel_pages',
'key_through_to' => 'page_id',
'model_to' => 'Model_Cms_Page',
'key_to' => 'id',
'cascade_save' => true,
'cascade_delete' => true,
'conditions' => array(
'where'=>array(
array('status', '!=', 'Deleted')
)
)
),
```

The above causes `t1`.`status` != `'Deleted'` to be added to the ON clause of the LEFT JOIN to cms__pages. This results in a query error.