]> Raphaël G. Git Repositories - blogbundle/commitdiff
Remove dropped doctrine orm controller_resolver key
authorRaphaël Gertz <git@rapsys.eu>
Thu, 26 Nov 2026 15:55:57 +0000 (16:55 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 26 Nov 2026 15:55:57 +0000 (16:55 +0100)
Add doctrine entities xml mappings
Cleanup

config/packages/rapsysblog.yaml

index 09d7ac534b3769cfcc7e820d6392e043235e04ec..69559513ba7c54fda2eaf3f9d9cc7cbf4d2fe471 100644 (file)
@@ -168,13 +168,22 @@ doctrine:
             collate: 'utf8mb4_unicode_ci'
     # Orm configuration
     orm:
-        # Controler resolver
-        controller_resolver:
-            auto_mapping: false
+        # Mapping
+        mappings:
+            RapsysBlogBundle:
+                type: 'xml'
+                prefix: 'Rapsys\BlogBundle\Entity'
+                is_bundle: true
+                dir: 'config/doctrine'
+            RapsysUserBundle:
+                type: 'xml'
+                prefix: 'Rapsys\UserBundle\Entity'
+                is_bundle: true
+                dir: 'config/doctrine'
+
         # Replace repository factory
         repository_factory: 'Rapsys\BlogBundle\Factory\RepositoryFactory'
-
-        #Force resolution of UserBundle entities to BlogBundle one
+        # Force resolution of UserBundle entities to BlogBundle one
         #XXX: without these lines, relations are lookup in parent namespace ignoring BlogBundle extension
         resolve_target_entities:
             Rapsys\UserBundle\Entity\Group: 'Rapsys\BlogBundle\Entity\Group'