**To Reproduce** ```php $authorsOrderby=$this->orm->authors->findAll()->orderBy('books->title'); $authors=$this->orm->authors->findAll(); Assert::same($authorsOrderby->count(),$authors->count()); ``` **To Fix** Remove this Line: https://github.com/nextras/orm/blob/af22260df96a7cb0643b99cdf561c086dc63b34d/src/Collection/DbalCollection.php#L332 **Versions::** - Database: MariaDB 10.8.8 - Orm: 5.0.1 - Dbal: 5.0.1
To Reproduce
To Fix
Remove this Line:
orm/src/Collection/DbalCollection.php
Line 332 in af22260
Versions::