j4mie / idiorm

A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.
http://j4mie.github.com/idiormandparis/
2.01k stars 369 forks source link

Distinct and group by clauses? #13

Closed philoye closed 13 years ago

philoye commented 13 years ago

Any thought of adding DISTINCT and GROUP BY to Idiorm?

j4mie commented 13 years ago

Hi,

Thanks for the suggestion!

I've added both of these in the develop branch - would you mind pulling the branch down and giving it a try?

https://github.com/j4mie/idiorm/tree/develop

Cheers

philoye commented 13 years ago

Wow, that was fast! It was just an idle thought, didn't think you'd go and implement it right away.

I'll give it a go in a couple of days...

philoye commented 13 years ago

I did a quick test and replaced a raw sequel query with the new Distinct/GroupBy. Works a treat.

Idiorm (and Paris) continues to impress. Thanks again for making such an awesome library. Cheers.

j4mie commented 13 years ago

Great. I'll release 1.1 at some point soon with this additions and a few others. Thanks for the suggestion.