Commit 1ef2bbbb authored by Mat's avatar Mat

un oubli, ajoute une classe sur les forms (pas en api)

parent 4b4b70e0
...@@ -59,6 +59,7 @@ class ImageType extends AbstractType ...@@ -59,6 +59,7 @@ class ImageType extends AbstractType
$resolver->setDefault('data_class', Image::class); $resolver->setDefault('data_class', Image::class);
// Image::class => \TechnoBundle\Entity\Image (2 écritures équivalentes) // Image::class => \TechnoBundle\Entity\Image (2 écritures équivalentes)
$resolver->setDefault('attr', array('class' => 'image_type'));
} }
/** /**
......
...@@ -47,6 +47,7 @@ class OwnerType extends AbstractType ...@@ -47,6 +47,7 @@ class OwnerType extends AbstractType
parent::configureOptions($resolver); parent::configureOptions($resolver);
$resolver->setDefault('data_class', Owner::class); $resolver->setDefault('data_class', Owner::class);
$resolver->setDefault('attr', array('class' => 'owner_type'));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment