EasyCorp / EasyCorp/EasyAdminBundle

Multiple dashboards and association-links

Open
#7,343 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.