Automatically join relations when using Criteria::where()