title: Laravel 4.1 eager relationship "with" ignoring constraint clause
body: <pre><code>// class User
  public function roles() {
      return $this-&gt;belongsToMany('Role', 'user_roles', 'uid', 'rid');
  }
  
  // class Role
  public function users() {
      return $this-&gt;belongsToMany('User', 'user_roles', 'rid', 'uid');
  }
  
  // sql
  -- user
  id | name | other fields
  
  -- user_role
  id | name
  
  -- user_roles, uid fk to user and rid fk to user_role
  uid | rid
  </code></pre>
  
  <p>I am trying to load users with a certain role, i.e. load all editors, with the following code:</p>
  
  <pre><code>&lt;?php
  $roleName = 'editors';
  return \User::with(array('roles' =&gt; function($query) use($roleName) {
      $query-&gt;where('name', '=', $roleName);
  }))-&gt;get();
  </code></pre>
  
  <p>The above code returns every user, ignoring the $query->where. What's wrong?</p>