-
-
Notifications
You must be signed in to change notification settings - Fork 144
Description
The ORM uses generated column names to map data unto the right models, eg.
`parent.through[]`.`id` AS `parent.through[].id`This leads to a number of problems:
- Accurately adding or removing backticks based on SQL grammar becomes impossible
- Writing custom queries and mapping them to model classes is a pain, since you need to manually write the exact same aliases
I think it's possible to refactor QueryToModelMapper so that we can simply write
parent.trough.idAnd still map it to the right relation.