Permalink
Browse files

using correct prefix

  • Loading branch information...
elHornair committed Feb 25, 2013
1 parent 7465da9 commit f3a07e18b9d1c6992dc0b98bf61e72f57625dba7
Showing with 4 additions and 4 deletions.
  1. +1 −1 Form/Type/ImageType.php
  2. +2 −2 Resources/config/odm.xml
  3. +1 −1 Resources/views/Form/fields.html.twig
View
@@ -15,7 +15,7 @@ public function getParent()
public function getName()
{
- return 'phpcr_image';
+ return 'phpcr_odm_image';
}
public function buildForm(FormBuilderInterface $builder, array $options)
View
@@ -60,8 +60,8 @@
<argument type="service" id="service_container"/>
</service>
- <service id="form.type.phpcr.image" class="Doctrine\Bundle\PHPCRBundle\Form\Type\ImageType">
- <tag name="form.type" alias="phpcr_image"/>
+ <service id="form.type.phpcr_odm.image" class="Doctrine\Bundle\PHPCRBundle\Form\Type\ImageType">
+ <tag name="form.type" alias="phpcr_odm_image"/>
</service>
<service id="form.type.phpcr.document" class="Doctrine\Bundle\PHPCRBundle\Form\Type\DocumentType">
@@ -1,4 +1,4 @@
-{% block phpcr_image_widget %}
+{% block phpcr_odm_image_widget %}
{{ form_widget(form) }}
<img src="{{ form.vars.data | imagine_filter('image_upload_thumbnail') }}" alt="" />
{% endblock %}

0 comments on commit f3a07e1

Please sign in to comment.