File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Tests/Fixtures/Validation/Resources Expand file tree Collapse file tree 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)
6868
6969 foreach ($ this ->extractSupportedLoaders ($ loaders ) as $ loader ) {
7070 foreach ($ loader ->getMappedClasses () as $ mappedClass ) {
71- $ metadataFactory ->getMetadataFor ($ mappedClass );
71+ if ($ metadataFactory ->hasMetadataFor ($ mappedClass )) {
72+ $ metadataFactory ->getMetadataFor ($ mappedClass );
73+ }
7274 }
7375 }
7476
Original file line number Diff line number Diff line change 1515 </constraint >
1616 </property >
1717 </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 >
1829</constraint-mapping >
You can’t perform that action at this time.
0 commit comments