mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
How to use Query Builder only? #6305
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ztj1993 on GitHub (Sep 23, 2019).
Originally assigned to: @Ocramius on GitHub.
Support Question
Assuming that I have an RPC communication (internal use), I want to transfer information such as where, order, group to the back end according to the model. Can QueryBuilder be implemented?
I just want to use the query builder.
@Ocramius commented on GitHub (Sep 23, 2019):
Check the
CriteriaAPI: https://www.doctrine-project.org/projects/doctrine-orm/en/2.6/reference/working-with-associations.html#filtering-collectionsYou may also want to look at the specification pattern, and at the "query bus" used in CQRS/ES frameworks in the PHP ecosystem.