Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Add expr method to aggregation expression object #255

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Mar 17, 2016

This adds the expr() method to the expression object the same way it is already available in the builder. This is helpful when needing to create a fresh expression object (to be nested inside) without having access to the actual aggregation builder.

This may be confusing due to the similarity to the expression() method that already exists (which can be used to apply an expression previously created with expr()) but I can't come up with any more meaningful name.

@alcaeus alcaeus added this to the 1.3.0 milestone Mar 17, 2016
@jmikola
Copy link
Member

jmikola commented Mar 17, 2016

LGTM. The similar name is unfortunate but I think it's worth keeping this consistent with the Query API.

alcaeus added a commit that referenced this pull request Mar 17, 2016
Add expr method to aggregation expression object
@alcaeus alcaeus merged commit f5a0c76 into doctrine:master Mar 17, 2016
@alcaeus alcaeus deleted the aggregation-expr branch March 17, 2016 19:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants