Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a method to enabled grouping columns by array #942

Closed
wants to merge 1 commit into from

Conversation

nibsirahsieu
Copy link
Contributor

Currently, if we want to do grouping by multiple columns, we have to write groupBy for each column. For example:

FooBarQuery::create()
   ->joinBaz()
   ->select(['Foo', 'Bar'])
   ->withColumn('COUNT(Baz.Id)', 'nbBazs')
   ->groupBy('Foo')
   ->groupBy('Bar')

with this PR, we just simply write:

FooBarQuery::create()
   ->joinBaz()
   ->select(['Foo', 'Bar'])
   ->withColumn('COUNT(Baz.Id)', 'nbBazs')
   ->groupByArray(['Foo', 'Bar'])

@marcj
Copy link
Member

marcj commented Jan 21, 2015

Well, thanks, but Propel1 is feature freeze. You can try it at Propel2

@marcj marcj closed this Jan 21, 2015
@nibsirahsieu
Copy link
Contributor Author

Ok, no problem :), i'm going to open PR on the Propel2 repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants