mirror of https://github.com/go-gorm/gorm.git
Compare commits
2 Commits
140732ff90
...
cd869a0b5e
Author | SHA1 | Date |
---|---|---|
Adam Glazer | cd869a0b5e | |
greencoda | d95ad7b49d |
|
@ -41,6 +41,16 @@ func (db *DB) Association(column string) *Association {
|
||||||
return association
|
return association
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (association *Association) BuildCondition() *DB {
|
||||||
|
if association.Error != nil {
|
||||||
|
tx := association.DB
|
||||||
|
tx.Error = association.Error
|
||||||
|
return tx
|
||||||
|
}
|
||||||
|
|
||||||
|
return association.buildCondition()
|
||||||
|
}
|
||||||
|
|
||||||
func (association *Association) Unscoped() *Association {
|
func (association *Association) Unscoped() *Association {
|
||||||
return &Association{
|
return &Association{
|
||||||
DB: association.DB,
|
DB: association.DB,
|
||||||
|
|
Loading…
Reference in New Issue