8000 [RFC] Follow-up on `doctrine/collections` Order enum · Issue #11313 · doctrine/orm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[RFC] Follow-up on doctrine/collections Order enum #11313
Open
@greg0ire

Description

@greg0ire

In doctrine/collections#389, I introduced a new enum: Order

What should we use it for inside the ORM?

  • The OrderBy attribute: this is a clear use case where we should switch to that enum, since it has to do with collections
  • QueryBuilder::orderBy() / addOrderBy(): this one is less clear to me… when you select several entities, you don't get a collection, but a list, right?
  • DQL : I don't think we should allow it inside DQL, it's cumbersome
  • Expr\OrderBy: I'm not sure we should do it here either.

@derrabus @SenseException any thoughts?

Cc @ThomasLandauer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0