Commit 1dea9852 authored by Taylor Otwell's avatar Taylor Otwell

fix eager loading of belongs_to relationships when all keys are null.

parent 47b60135
......@@ -71,6 +71,8 @@ class Belongs_To extends Relationship {
}
}
if (count($keys) == 0) $keys = array(0);
$this->table->where_in($this->model->key(), array_unique($keys));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment