We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 934bdbb commit f6e3282Copy full SHA for f6e3282
src/Inheritance.php
@@ -47,7 +47,7 @@ protected static function bootInheritance()
47
}
48
49
static::addGlobalScope(function ($query) {
50
- $query->where(static::$inheritanceColumn, static::getInheritanceType());
+ $query->where($query->getModel()->getTable().'.'.static::$inheritanceColumn, static::getInheritanceType());
51
});
52
53
static::creating(function ($model) {
0 commit comments