-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
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
[Form] Ordering collections #1421
Comments
Nevermind, I didn't make note of the OrderBy annotations provided by the ORM. I'm not sure if this is the only wanted way of achieving this. If so, feel free to close this issue. |
Please, ask your questions on the Symfony2 mailing-list. |
Will do. I initially thought this as a feature request without thinking twice about utilizing OrderBy... however, if it's not currently built in, it may be good just in case someone wants to dynamically change the ordering within the form? I'll start using the mailing list. PS -- SF2 is looking and feeling ridiculously awesome. :) Amazing work to you and the contributors. |
I'm not sure if we can already do this, but I can't figure out how to order an actual collection. My code is:
That all works great, but when rendering my form and the collection, the collection is sorted by ID. I understand I can sort the questions within CreativeQuestionsType, but I want to be able to order by CreativeQuestions' pos field and actually order by the position the user defined them to be.
Is this functionality supported yet?
The text was updated successfully, but these errors were encountered: