Model_Market::find($market, array(Returns: Argument 1 passed to Orm\Query::_parse_where_array() must be of the type array, object given
'related' => array(
'events' => array(
'where' => array(
array(Db::expr('YEAR(`date`)'), '=', $year),
),
),
),
))
Model_Market::query()
->related('events', array('where' => array(array(\Db::expr('YEAR(`date`)'), '=', $year))))->get();
It looks like you're new here. If you want to get involved, click one of these buttons!