laravel/framework — pull request #405 by ryanzec (2013-02-22 00:19:23+00:00)
Title: Fixes issue #387

This fixes issue #387 however I need some help to write a test. I am no experience with Mockery and very little experience witht he inner working of the Laravel framework however I know this code fixes the issue as it fixes my application. To test this, there need to be a test that simulate this:

```php
Model::with('user', 'userGroup')->get()
```

as that is the code that produced the issue for me in the first place.