![]() |
Hi I have the following problem with my query. It shows also the entries from my database which are soft deleted. In the deleted_at there is a date and time but it is still shown in the results. Here is my query maybe Im doing something wrong. Thanks for helping me....
Code: $data["offeneAnfragen"] = $this->work->where("genehmigt is null", Null)->orWhere('genehmigt', 0)->join("user", "user.id = urlaub.user_id ")->orderBy("user_id")->findAll(); Thanks
Just to confirm - in your model, have you set usesoftdeletes = true;?
(01-09-2024, 07:57 AM)kilishan Wrote: Then doing the grouping that @demyr suggested is what you'll probably need to do. It worked with grouping thanks for the help to everyone..... |
Welcome Guest, Not a member yet? Register Sign In |