Skip to content
Browse files

Merge branch 'master' into imagine-cache-invalidator-listener

  • Loading branch information...
2 parents 54ea79e + c84f1fe commit 00030971eee54408e596bb3b480757a6cb5d65ca @dbu dbu committed Mar 13, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 Form/Type/ImageType.php
View
6 Form/Type/ImageType.php
@@ -3,6 +3,7 @@
namespace Doctrine\Bundle\PHPCRBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
+use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Form\FormBuilderInterface;
use Doctrine\Bundle\PHPCRBundle\Form\DataTransformer\ModelToFileTransformer;
@@ -23,4 +24,9 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$transformer = new ModelToFileTransformer();
$builder->addModelTransformer($transformer);
}
+
+ public function setDefaultOptions(OptionsResolverInterface $options)
+ {
+ $options->setDefaults(array('data_class' => 'Doctrine\ODM\PHPCR\Document\Image'));
+ }
}

0 comments on commit 0003097

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