Skip to content

Commit aa66b79

Browse files
committed
fix: add missing $allowEmptyInserts to template
1 parent cadc6f8 commit aa66b79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

system/Commands/Generators/Views/model.tpl.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class {class} extends Model
1717
protected $protectFields = true;
1818
protected $allowedFields = [];
1919

20+
protected bool $allowEmptyInserts = false;
21+
2022
// Dates
2123
protected $useTimestamps = false;
2224
protected $dateFormat = 'datetime';

0 commit comments

Comments
 (0)