/** * * Mofifies the native fetch params based on the eager params. * * @param Solar_Sql_Model_Params_Eager $eager The eager params. * * @param Solar_Sql_Model_Params_Fetch $fetch The native fetch settings. * * @return void * * @see modEagerFetch() * */ protected function _modEagerFetch($eager, $fetch) { // add any eager joins to the fetch $this->_modEagerFetchJoin($eager, $fetch); // extra WHERE clauses $where = array_merge($this->where, $this->_foreign_model->getWhereMods($eager['alias'])); foreach ($where as $cond => $val) { $fetch->where($cond, $val); } }