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

Ordering over 1:1d relation #120

Closed f3l1x closed 9 years ago

f3l1x commented 9 years ago

Relations:

A <1:1d> B.

$aRepository->findAll()->orderBy('this->b->changed', 'DESC');

In the code: https://github.com/nextras/orm/blob/5ce2c40686ec32a14c13303a12d61b2f3a263c90/src/Mapper/Dbal/QueryBuilderHelper.php#L89

When it's removed, it works nice.

How can I order solve it? Thx.

hrach commented 9 years ago

Seem this could be easily fixed.

f3l1x commented 9 years ago

@hrach Is there any workaround? I need it really soon. Thx.

f3l1x commented 9 years ago

@hrach Thank you.

hrach commented 9 years ago

Uh, I thank you for the bug report!