Skip to content

[HttpKernel] MapEntityCollection concept #60451

New issue

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

Open
evgenij-vy opened this issue May 18, 2025 · 0 comments · May be fixed by #60450
Open

[HttpKernel] MapEntityCollection concept #60451

evgenij-vy opened this issue May 18, 2025 · 0 comments · May be fixed by #60450

Comments

@evgenij-vy
Copy link

evgenij-vy commented May 18, 2025

Description

Hi everybody. It seems that Symfony needed a smart resolver for entity collection.
It's concept, and if it is really interesting for the community, I'll continue working.

Now I create PR #60450 for preview

Example

public function __invoke(
    #[MapEntityCollection(
        class: SomeEntity::class,
        queryString: 'queryString',
        queryMapping: ['someQueryProperty' => 'someEntityProperty'],
        doctrineParameters: ['entityProperty' => 'someValue'],
        filters: [
            MyCustomFilter::class,
        ],
        defaultOrdering: ['id' => 'ASC']
    )]
    iterable $collectionEntity,
    #[MapQueryString]
    QueryStringObject $queryString,
)
{
}
@evgenij-vy evgenij-vy linked a pull request May 18, 2025 that will close this issue
@OskarStark OskarStark changed the title [HttpKernel] MapEntityCollection concept [HttpKernel] MapEntityCollection concept May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants