add some missing auto-deletes if refcount reaches zero
This commit is contained in:
@@ -25,6 +25,15 @@ class TableComment extends Model
|
||||
{
|
||||
use Reportable;
|
||||
|
||||
protected static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
|
||||
static::deleting(function(TableComment $self) {
|
||||
$self->reportsOf()->delete();
|
||||
});
|
||||
}
|
||||
|
||||
/** Context data table */
|
||||
public function table()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user