mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #6546] Fix OrderBy annotation with association #10023
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/6546
State: closed
Merged: No
According to SchemaValidator, the
@OrderByannotation can have either a field name or an association name.However if association is used it doesn't work correctly and the result is an
Undefined indexerror inDefaultQuoteStrategy::getColumnName()- obviously since the association is not in$classMetadata->fieldMappings.Of course some test is needed. But first I'd like to know how (if at all) to handle associations with more than one join column.