Skip to content
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

Order by in entity lists #16

Closed
jagoPG opened this issue Jun 22, 2017 · 0 comments
Closed

Order by in entity lists #16

jagoPG opened this issue Jun 22, 2017 · 0 comments

Comments

@jagoPG
Copy link

jagoPG commented Jun 22, 2017

When ordering a column in the list of an entity an exception is thrown. There are two kind of errors:

  1. Slugs and translations: in this case the query has to be reformulated to support different DB versions.
    SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'rome_reports.c2_.slug' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

  2. When parsing some value objects, its value is not attached in the query.
    [Semantical Error] line 0, col 103 near 'b GROUP BY a.id': Error: Class App\Domain\Model\NewsletterSubscription\NewsletterSubscription has no association named languageId

@jagoPG jagoPG closed this as completed Jul 1, 2024
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

No branches or pull requests

1 participant