|
|
|
@@ -35,7 +35,8 @@ abstract class BaseModel extends Model implements IModelFeature |
|
|
|
|
|
|
|
public static function getBuilder(string $name = 'main'): Builder |
|
|
|
{ |
|
|
|
return DB::table(static::getTableName(), $name)->whereNull(static::COL_NAME_DELETED_AT); |
|
|
|
return DB::table(static::getTableName(), $name) |
|
|
|
->whereNull($name . "." . static::COL_NAME_DELETED_AT); |
|
|
|
} |
|
|
|
|
|
|
|
public static function getTableName(): string |
|
|
|
|