CakePHP 3.3.15 multiple matching() chained with OR
问题 I'm trying to implement a global search mechenism in my CakePHP 3.3.15 app - this involves searching the Parent table for a value plus searching all the associated tables for the same value. I'm using matching() , but I can't find a way to combine multiple matching() into one query object using OR . It looks like matching() will narrow down the result set and calling matching() consecutively will use the object modified by the previous matching() call. This is what I have: $query = $this->