Passing conditions to contain()
I've tried passing a condition to contain, like it was shown in the manual, but I didn't got it to work. The manual said I had to pass contain('myModel', function($q){...}), but instead I had to use an array like contain(['myModel' => function($q){...}]);
I'm using cake 3.4.13
Loading
Please sign in to comment