Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #197 Preserve existing class metadata (ro0NL)
This PR was squashed before being merged into the 1.0-dev branch (closes #197). Discussion ---------- Preserve existing class metadata Hi, Im facing an issue related to `make:entity`. I noticed it uses `DisconnectedClassMetadataFactory` which at this point basically forgets about existing metadata (metadata that on itself is loaded during the `loadClassMetadata` event). Real life example is e.g. https://github.com/msgphp/symfony-demo-app/blob/b9536243f4a0803b36acfef839ac0c3559a91bd6/src/Entity/User/UserRole.php#L11 where the `roles` field is mapped during `loadClassMetadata`. Currently its mapping is not loaded, causing an invalid field override here. This solves it. Commits ------- 79ba86a Preserve existing class metadata
- Loading branch information