File tree 2 files changed +14
-1
lines changed
src/Symfony/Bundle/FrameworkBundle
Tests/Fixtures/Validation/Resources
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,9 @@ public function warmUp($cacheDir)
68
68
69
69
foreach ($ this ->extractSupportedLoaders ($ loaders ) as $ loader ) {
70
70
foreach ($ loader ->getMappedClasses () as $ mappedClass ) {
71
- $ metadataFactory ->getMetadataFor ($ mappedClass );
71
+ if ($ metadataFactory ->hasMetadataFor ($ mappedClass )) {
72
+ $ metadataFactory ->getMetadataFor ($ mappedClass );
73
+ }
72
74
}
73
75
}
74
76
Original file line number Diff line number Diff line change 15
15
</constraint >
16
16
</property >
17
17
</class >
18
+
19
+ <class name =" Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation\NonExistentClass" >
20
+ <property name =" gender" >
21
+ <constraint name =" Choice" >
22
+ <option name =" choices" >
23
+ <value >other</value >
24
+ </option >
25
+ <option name =" message" >This should be ignored.</option >
26
+ </constraint >
27
+ </property >
28
+ </class >
18
29
</constraint-mapping >
You can’t perform that action at this time.
0 commit comments