illuminate/database — pull request #74 by cmenke (2012-12-05 17:59:56+00:00)
Title: Fix constraints when eager-loading deep relationships

Fixed a bug where constraints could be omitted when eager loading nested/deep relationships.

Example:
```php
Studio::with(array(
'Directors' => function($query) {
$query->orderBy('created_at', 'desc');
},
'Directors.Movies'))->find(1);

```

In the previous version, any constraints for `Directors` were replaced by an empty function when iterating through `Directors.Movies`.
This could only be circumvented by changing the of the eager-loaded relationships.

This pull-requests fixes that by ensuring no previously defined constraints are overwritten.