I have a query in laravel that is
$processing = $this->Orders->find()->contain(['OrderItems.Themes','OrderItems.Products','OrderItems.Products.Users','OrderItems.Themes.Users'])->hydrate(false)->where(['status'=> 'InProcessing'])->toArray();
prx($processing);
this is look like this
i would like to use where query for inside orders--orderitems--products--users--id how to fix it in a query i try this which give error
$processing = $this->Orders->find()->contain(['OrderItems.Themes','OrderItems.Products','OrderItems.Products.Users','OrderItems.Themes.Users'])->hydrate(false)->where(['status'=> 'InProcessing','Orders.OrderItems.Products.Users.id'=>$userId])->toArray();
prx($processing);
ERROR IS
via ram pratap singh