mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-126: Design Query and AbstactQuery as Fluent Interface #158
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 @doctrinebot on GitHub (Nov 6, 2009).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user @beberlei:
I would suggest to design the following methods on AbstractQuery/Query to be fluent. This would make lots of sense, since some methods might be called several times and configuration would be cumbersome.
A list of the affected methods:
AbstractQuery
Query
NativeQuery
@doctrinebot commented on GitHub (Nov 6, 2009):
Comment created by romanb:
Two more suggestions:
setExpireResultCache => expireResultCache
setExpireQueryCache => expireQueryCache
@doctrinebot commented on GitHub (Nov 7, 2009):
Comment created by romanb:
After some pondering I think this is a good idea for consistency, especially where methods are concerned that are both on the Query and QueryBuilder APIs.
Go for it, but not before ALPHA3 is out!
@doctrinebot commented on GitHub (Nov 21, 2009):
Comment created by @beberlei:
Implemented and tested this, upgraded UPGRADE_TO_2_0.
@doctrinebot commented on GitHub (Nov 21, 2009):
Issue was closed with resolution "Fixed"