You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if placeholders used inside Relation callbacks resolved to the table corresponding to the relation rather than the root model, e.g.:
varcardCarddb.NewSelect().Model(&card).
Relation("Card.Deck.Collection", func(query*bun.SelectQuery) *bun.SelectQuery {
// ?TableAlias.name should resolve to card__deck__collection.name; currently resolves to card.namereturnquery.Where("?TableAlias.name = ?", collectionName)
})
This issue has been automatically marked as stale because it has not had activity in the last 30 days. If there is no update within the next 7 days, this issue will be closed.
It would be nice if placeholders used inside
Relation
callbacks resolved to the table corresponding to the relation rather than the root model, e.g.:Possibly related to #154.
The text was updated successfully, but these errors were encountered: