You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
So we can easily add a filter by some property or a custom reusable filter like ApiPlatform.
I like attributes, and my goal is to configure as much as possible and write minimal code
The text was updated successfully, but these errors were encountered:
public function __invoke(MapQueryString] QueryStringObject $query, SomeEntityRepository $repository)
{
$collection = $repository->findByQuery($queryString);
}
It is more readable and less low level configuration IMO.
Uh oh!
There was an error while loading. Please reload this page.
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
Entity:
So we can easily add a filter by some property or a custom reusable filter like ApiPlatform.
I like attributes, and my goal is to configure as much as possible and write minimal code
The text was updated successfully, but these errors were encountered: