laravel/laravel — Issue #255: Eloquent Many to many hydrator bug?
Author: thibzy
Created: 2012-01-20 16:48:33+00:00
State: open

Related topic : http://forums.laravel.com/viewtopic.php?pid=3875

Line 193 of the file Laravel/database/eloquent/hydrator
```ruby
$children = $relationship->query->get(array(Model::table(get_class($relationship)).'.*', $relating_table.'.'.$relating_key));
```

The get method of the Query object wasn't working for me, I fixed it with

```php
$children = $relationship->query->select(array(Model::table(get_class($relationship)).'.*', $relating_table.'.'.$relating_key))->get();
```