-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #53365 [DoctrineBridge] Allow
EntityValueResolver
to return…
… a list of entities (HypeMC) This PR was merged into the 7.1 branch. Discussion ---------- [DoctrineBridge] Allow `EntityValueResolver` to return a list of entities | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | Fix #53236 (sort of) | License | MIT Makes the following possible: ```php #[Route('/{author_id}', name: 'app_test')] public function index( #[MapEntity(class: Post::class, expr: 'repository.findBy({"author": author_id}, {}, 10)')] iterable $posts ): Response { // ... } ``` This is actually something that used to be possible with the SensioFrameworkExtraBundle. Commits ------- 165524c [DoctrineBridge] Allow `EntityValueResolver` to return a list of entities
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters