File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,10 @@ public function regenerateEntities(string $classOrNamespace): void
88
88
89
89
$ operations [$ embeddedClasses [$ fieldName ]] = $ this ->createClassManipulator ($ embeddedClasses [$ fieldName ]);
90
90
91
+ if (!\in_array ($ fieldName , $ mappedFields )) {
92
+ continue ;
93
+ }
94
+
91
95
$ manipulator ->addEmbeddedEntity ($ fieldName , $ className );
92
96
}
93
97
@@ -242,7 +246,8 @@ private function getMappedFieldsInEntity(ClassMetadata $classMetadata): array
242
246
243
247
$ targetFields = array_merge (
244
248
array_keys ($ classMetadata ->fieldMappings ),
245
- array_keys ($ classMetadata ->associationMappings )
249
+ array_keys ($ classMetadata ->associationMappings ),
250
+ array_keys ($ classMetadata ->embeddedClasses )
246
251
);
247
252
248
253
if ($ classReflection ) {
You can’t perform that action at this time.
0 commit comments