Add query object support to typed repositories

Created on 20 March 2024, 3 months ago
Updated 21 March 2024, 3 months ago

Problem/Motivation

The query object pattern could be a convenient way to query our typed repositories. I've coded an implementation that makes use of this pattern.

API changes

Now we have a new find() method on typed repositories that accepts a WrappedEntityQuery parameter, that contains all the querying information to send to the repository. Our query objects must extend WrappedEntityQuery and must be instantiatied with ConcreteQueryObjectClass::new()

See my article on the subject:
https://www.victordorado.es/2024/03/14/query-objects-the-brand-new-form-...

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

🇪🇸Spain vidorado Pamplona (Navarra)

Live updates comments and jobs are added and updated live.
  • Needs committer feedback

    The issue needs input from the primary project maintainers, because it affects the project’s long-term roadmap, or because the community was not able to come to a consensus and needs a top-down decision. Use sparingly.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024