fix eager loading of belongs_to relationships when all keys are null.
This commit is contained in:
parent
47b60135bb
commit
1dea9852a9
|
@ -71,6 +71,8 @@ public function eagerly_constrain($results)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count($keys) == 0) $keys = array(0);
|
||||||
|
|
||||||
$this->table->where_in($this->model->key(), array_unique($keys));
|
$this->table->where_in($this->model->key(), array_unique($keys));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue