CakePHP 3.7.5 Retrive data of a field into the controller
问题 I apologize in advance if I am opening a question that may have already been asked, but I don't think I have found any results. I have a problem with the following CakePHP code portion: $unavailable_resource_ids = $this->Resources->Unavailabilities ->find() ->select(['resource_id']) ->matching('Bookings', function ($q) { return $q->where([ 'Bookings.booking_status_id NOT IN ' => [6, 4, 3] ]); }) ->where([ 'OR' => [ [ 'Unavailabilities.start <= :start_date', 'DATE_ADD(Unavailabilities.end,