$has_many WHERE not working?

edited June 2013 in Modules
is anyone else having problems using the WHERE clause for $has_many?
public $has_many = array('attributes' => array('model' => array(FUEL_FOLDER => 'fuel_tags_model', 'where' => 'category_id = 1'));
when I try to use it, it doesn't actually filter by the condition..

Comments

  • edited 9:29PM
    I believe the example you have above is in an incorrect format. Try the following:
    public $has_many = array('tags' => array('model' => array(FUEL_FOLDER => 'fuel_tags_model'), 'where' => 'category_id = 1'));
Sign In or Register to comment.