瀏覽代碼

[Form] Added EntityType DIC configuration to DoctrineBundle

Bernhard Schussek 14 年之前
父節點
當前提交
50642bb830

+ 5 - 0
src/Symfony/Bundle/DoctrineBundle/Resources/config/orm.xml

@@ -62,5 +62,10 @@
             <tag name="form.guesser" />
             <argument type="service" id="doctrine.orm.default_entity_manager" />
         </service>
+        
+        <service id="form.type.entity" class="Symfony\Bridge\Doctrine\Form\EntityType">
+            <tag name="form.type" alias="entity" />
+            <argument type="service" id="doctrine.orm.default_entity_manager" />
+        </service>
     </services>
 </container>

+ 0 - 4
src/Symfony/Bundle/FrameworkBundle/Resources/config/form.xml

@@ -126,10 +126,6 @@
         <service id="form.type.datetime" class="Symfony\Component\Form\Type\DateTimeType">
             <tag name="form.type" alias="datetime" />
         </service>
-        <service id="form.type.entity" class="Symfony\Component\Form\Type\EntityType">
-            <tag name="form.type" alias="entity" />
-            <argument type="service" id="doctrine.orm.default_entity_manager" />
-        </service>
         <service id="form.type.file" class="Symfony\Component\Form\Type\FileType">
             <tag name="form.type" alias="file" />
             <argument type="service" id="file.temporary_storage" />