File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,6 @@ public function loadClassMetadata(ClassMetadata $metadata): bool
133
133
$ metadata ->addPropertyConstraint ($ property , new Type (['type ' => 'scalar ' ]));
134
134
}
135
135
}
136
-
137
- if (!$ nullable && !$ hasNotBlankConstraint && !$ hasNotNullConstraint ) {
138
- $ metadata ->addPropertyConstraint ($ property , new NotNull ());
139
- }
140
136
} else {
141
137
if ($ hasTypeConstraint ) {
142
138
continue ;
@@ -157,10 +153,10 @@ public function loadClassMetadata(ClassMetadata $metadata): bool
157
153
if (null !== $ typeConstraint = $ this ->getTypeConstraint ($ type )) {
158
154
$ metadata ->addPropertyConstraint ($ property , $ typeConstraint );
159
155
}
156
+ }
160
157
161
- if (!$ nullable && !$ hasNotBlankConstraint && !$ hasNotNullConstraint ) {
162
- $ metadata ->addPropertyConstraint ($ property , new NotNull ());
163
- }
158
+ if (!$ nullable && !$ hasNotBlankConstraint && !$ hasNotNullConstraint ) {
159
+ $ metadata ->addPropertyConstraint ($ property , new NotNull ());
164
160
}
165
161
}
166
162
You can’t perform that action at this time.
0 commit comments