I have a one to many relation setup.
A Customer can have many Students, students can have a status as either Full or Left.
I want to fetch the Customer only if they have Students that are FULL.
I thought Eager Loading would do the trick but it is still returning customers if they have no Full students:
$customers = Customer::with(array('students' => function($query)
{
$query->where('STATUS', '=', 'FULL');
}))->get();
Have had a hunt around on Google but couldn't find anything, not really sure how to word this question.
Thanks for your help