![]() |
03-30-2024, 05:00 PM
(This post was last modified: 03-30-2024, 05:11 PM by FlavioNeves. Edit Reason: code was wrong )
Hello everybody!
I've been having a problem for a few days, and I can't solve it. Can anyone help me? I have a filter, where I am doing a join, but I am getting duplicate results. $modelApp = new \App\Models\App(); $menuPai = new \StdClass(); $request->menuPai = $modelApp->select('apps.*, appmenus.menuAdmin submenu') ->join('appmenus', 'appmenus.app_url_admin = apps.urlAdmin', 'left') ->findAll(); return $request; The Email main menu should appear once, and below it show the Enviar and Criar submenus. However, the Email main menu is repeating. ![]() |
Messages In This Thread |
Duplicate foreach - by FlavioNeves - 03-30-2024, 05:00 PM
RE: Duplicate foreach - by InsiteFX - 03-30-2024, 10:20 PM
RE: Duplicate foreach - by MMLTech - 03-30-2024, 10:38 PM
RE: Duplicate foreach - by FlavioNeves - 03-31-2024, 01:07 AM
RE: Duplicate foreach - by InsiteFX - 04-01-2024, 03:59 AM
RE: Duplicate foreach - by FlavioNeves - 04-06-2024, 10:59 PM
|