Skip to content
This repository
Browse code

using correct prefix

  • Loading branch information...
commit f3a07e18b9d1c6992dc0b98bf61e72f57625dba7 1 parent 7465da9
elHornair authored February 25, 2013
2  Form/Type/ImageType.php
@@ -15,7 +15,7 @@ public function getParent()
15 15
 
16 16
     public function getName()
17 17
     {
18  
-        return 'phpcr_image';
  18
+        return 'phpcr_odm_image';
19 19
     }
20 20
 
21 21
     public function buildForm(FormBuilderInterface $builder, array $options)
4  Resources/config/odm.xml
@@ -60,8 +60,8 @@
60 60
             <argument type="service" id="service_container"/>
61 61
         </service>
62 62
 
63  
-        <service id="form.type.phpcr.image" class="Doctrine\Bundle\PHPCRBundle\Form\Type\ImageType">
64  
-            <tag name="form.type" alias="phpcr_image"/>
  63
+        <service id="form.type.phpcr_odm.image" class="Doctrine\Bundle\PHPCRBundle\Form\Type\ImageType">
  64
+            <tag name="form.type" alias="phpcr_odm_image"/>
65 65
         </service>
66 66
 
67 67
         <service id="form.type.phpcr.document" class="Doctrine\Bundle\PHPCRBundle\Form\Type\DocumentType">
2  Resources/views/Form/fields.html.twig
... ...
@@ -1,4 +1,4 @@
1  
-{% block phpcr_image_widget %}
  1
+{% block phpcr_odm_image_widget %}
2 2
     {{ form_widget(form) }}
3 3
     <img src="{{ form.vars.data | imagine_filter('image_upload_thumbnail') }}" alt="" />
4 4
 {% endblock %}

0 notes on commit f3a07e1

Please sign in to comment.
Something went wrong with that request. Please try again.