1
0
Fork 0
forked from alemi/upub

fix: related query also brings up relation

as a treat
This commit is contained in:
əlemi 2024-06-25 04:19:53 +02:00
parent fde3372bcc
commit 54b619dffc
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -97,6 +97,10 @@ impl Query {
.filter(condition) .filter(condition)
.select_only(); .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() { for column in model::actor::Column::iter() {
select = select.select_column_as(column, format!("{}{}", model::actor::Entity.table_name(), column.to_string())); select = select.select_column_as(column, format!("{}{}", model::actor::Entity.table_name(), column.to_string()));
} }