fix: related query also brings up relation
as a treat
This commit is contained in:
parent
fde3372bcc
commit
54b619dffc
1 changed files with 4 additions and 0 deletions
|
@ -97,6 +97,10 @@ impl Query {
|
|||
.filter(condition)
|
||||
.select_only();
|
||||
|
||||
for column in model::relation::Column::iter() {
|
||||
select = select.select_column_as(column, format!("{}{}", model::relation::Entity.table_name(), column.to_string()));
|
||||
}
|
||||
|
||||
for column in model::actor::Column::iter() {
|
||||
select = select.select_column_as(column, format!("{}{}", model::actor::Entity.table_name(), column.to_string()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue