laravel/framework — pull request #3561 by crhayes (2014-02-14 21:46:21+00:00)
Title: Fixed issue using whereHas with HasManyThrough Relationship

Fixes issue #3560

This PR fixed my issue, however I'm worried line 81 might cause issues if the parent key doesn't follow conventions. Any comments?

```
$key = $this->wrap($parentTable.'.'.$this->farParent->getForeignKey());
```