We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order
Currently, to use the enum we have to explicitly call the ->value.
->value
This seems to me to be useless as it would have been sufficient to simply use the Enum and let the code handle the conversion to string.
class MyEntity { ... - #[OrderBy(['opened' => Order::Descending->value])] + #[OrderBy(['opened' => Order::Descending])] private Collection $orderableItems;
The text was updated successfully, but these errors were encountered:
The OrderBy attribute is not part of the collections library.
OrderBy
Sorry, something went wrong.
@derrabus , you are right: sorry.
I also found an issue already opened about this:
doctrine/collections
No branches or pull requests
Currently, to use the enum we have to explicitly call the
->value
.This seems to me to be useless as it would have been sufficient to simply use the Enum and let the code handle the conversion to string.
The text was updated successfully, but these errors were encountered: