getQuery()->joins; if($joins == null) { return false; } foreach ($joins as $join) { if ($join->table == $table) { return true; } } return false; } }