I can't find a working query that match my need.
I simply have a Bookings model and a Bookingsstatus : Bookings
hasMany Bookingsstatus
In that way, I can keep all changes to the status and when I want the status of a Booking, I just have to take the last associated entry.
BUT, is there a query to get all Bookings currently matching a specific status ? (not a booking that has at some point the specific status)
I tried with matching but it's not working ... Does anyone has a lead ? Thanks