We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
I am using Easy Admin in version 4.10
On the index page, we have this function to add some join for associated relations of main entity
public function createIndexQueryBuilder(SearchDto $searchDto, EntityDto $entityDto, FieldCollection $fields, FilterCollection $filters): QueryBuilder { $qb = parent::createIndexQueryBuilder($searchDto, $entityDto, $fields, $filters); $qb->leftJoin('entity.translations', 'entityTranslations')->addSelect('entityTranslations'); $qb->leftJoin('entity.blocks', 'blocks')->addSelect('blocks'); $qb->leftJoin('blocks.columns', 'columns')->addSelect('columns'); $qb->leftJoin('columns.widgets', 'widgets')->addSelect('widgets'); $qb->leftJoin('widgets.translations', 'widgetsTranslations')->addSelect('widgetsTranslations'); return $qb; }
But for other pages like: NEW, EDIT, and DETAIL pages, how can we add some join to the main query?
Thanks for help
The text was updated successfully, but these errors were encountered:
Hi,
You can override function find($id, $lockMode = null, $lockVersion = null) in YourEntityRepository
function find($id, $lockMode = null, $lockVersion = null)
Sorry, something went wrong.
Nice thanks a lot.
No branches or pull requests
Hello,
I am using Easy Admin in version 4.10
On the index page, we have this function to add some join for associated relations of main entity
But for other pages like: NEW, EDIT, and DETAIL pages, how can we add some join to the main query?
Thanks for help
The text was updated successfully, but these errors were encountered: