Skip to content

Conversation

@markinigor
Copy link
Contributor

Copied from HasManyLoader

🔍 What was changed

Add orderBy trait to HasOneLoader from HasManyLoader.

🤔 Why?

Because sometimes we need to order HasOne relation from one-to-many table with ordering

  • Closes #
  • How was this tested:
    • Tested manually
    • Unit tests added

📃 Documentation

Copy link
Member

@roxblnfk roxblnfk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since sorting is involved in filtering records in this case, sorting options need to be provided in Reference in the future.

@roxblnfk roxblnfk merged commit 18e0b84 into cycle:2.x Jan 30, 2026
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants