nextras / orm

Orm with clean object design, smart relationship loading and powerful collections.
https://nextras.org/orm
MIT License
310 stars 57 forks source link

SELECT DISTINCT in ORM #310

Closed TOMeeeek closed 6 years ago

TOMeeeek commented 6 years ago

Hello, does ORM achieve the result as this? SELECT DISTINCT producers WHERE category IN(...) I tried a mapper, but no result. Thank you

hrach commented 6 years ago

Use query builder or raw query in mapper layer, docs here: https://nextras.org/orm/docs/master/mapper#toc-dbalmapper (I have to update it for 3.0, changes can be seen only in master doc for now)