Skip to content

Ordering in hasManyThrough relation doesn't work #292

@bbrody

Description

@bbrody

I have ProjectEntity with such relation in it
'users' => $mapper->hasManyThrough($entity, 'Api\V2\Entities\UserEntity', 'Api\V2\Entities\UserProjectEntity', 'user_id', 'project_id')->active()->order(['displayname' => 'ASC'])
->order() does not affect on the result, its sorted by id of UserProjectEntity (it has simple structure id - user_id -project_id)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions