laravel/laravel — pull request #946 by franzliedke (2012-07-12 20:24:36+00:00)
Title: Fix eager loading constraints

Eager loading constraints were broken by pull request #799. I fixed that now.

This change also moves some code to the Model class over from the Query class. This actually has benefits, as it makes manipulating the includes after assembling the query easier. (I want to do stuff like that in FluxBB's extension system.)

We really need unit tests...