We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9affa9 commit 61508d5Copy full SHA for 61508d5
src/PHPFUI/ORM/Tool/Generate/Validator.php
@@ -76,7 +76,7 @@ protected function getLine(\PHPFUI\ORM\Schema\Field $field) : string
76
$length = $this->getTypeLength($type);
77
$validators = [];
78
79
- if (! $field->nullable)
+ if (! $field->nullable && ! $field->autoIncrement)
80
{
81
$validators[] = 'required';
82
}
0 commit comments