title: Eloquent querying with relation ship
body: <p>So my problem is pretty simple. I am trying to query a table in a relationship with another using an constrained eager loading.</p>
  
  <p>But for some reason, the constraint is not working.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>$top_prospects = Player::with(array('statistic' =&gt; function($query){
                                  $query-&gt;where('carrer_gp', '&lt;=', 41);
                      }))
                      -&gt;where('rights', '&lt;=', '30')
                      -&gt;orderBy(DB::raw('floor(potentiel)+(consistency/10)'), 'desc')
                      -&gt;take(25)
                      -&gt;paginate(5,array('players.id','name','main_position','age','rights','country','potentiel','consistency'));
  </code></pre>
  
  <p>The carrer_gp &lt;= 41 where is not being respected...</p>
  
  <p>Any ideas why?</p>
  
  <p>Thanks,
  Ara</p>