EasyCorp / EasyCorp/EasyAdminBundle
Multiple dashboards and association-links
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 4.3k
- Forks
- 1.1k
- Avg merge
- 8d 2h
- Merged PRs (30d)
- 11
Description
I use EasyAdmin for a admin backoffice and a customer dashboard in the same project. The EayAdmin crud controllers are in separated directories and the customer dashboard controllers are prefixed with Dashboard. In the DashboardController files the Controller is set to the MenuItems using `setController().
In the backoffice, I have some associations from entity a to entity b. When a association field is shown in the index table, the string is linked to the detail view in the specific controller. That works - but the wrong controller is used automatically (a backoffice crud controller links to a dashboard crud controller but the content is shown in the backoffice).
How can I fix this?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the DashboardController files and the association-field link generation used by EasyAdmin. Reproduce the setup with separate backoffice and customer dashboard controllers, then trace which controller is selected for association links. Done means backoffice association links consistently open the corresponding backoffice CRUD controller.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100