Handle conditions that foreign key in the associated model's table.