We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a240d37 commit d645703Copy full SHA for d645703
Mapping/ClassMetadata.php
@@ -210,7 +210,7 @@ public function addConstraint(Constraint $constraint)
210
$this->cascadingStrategy = CascadingStrategy::CASCADE;
211
212
foreach ($this->getReflectionClass()->getProperties() as $property) {
213
- if ($property->hasType() && (('array' === $type = $property->getType()->getName()) || class_exists(($type)))) {
+ if ($property->hasType() && (('array' === $type = $property->getType()->getName()) || class_exists($type))) {
214
$this->addPropertyConstraint($property->getName(), new Valid());
215
}
216
0 commit comments