sonata-project/SonataCoreBundle — pull request #49 by eko (2014-03-04 13:56:13+00:00)
Title: Add Doctrine ORM serialization form type

Here is a `DoctrineORMSerializationType` form type.

This form type reads `JMSSerializer` serialization class metadata and uses `Doctrine` ORM entity metadata
to generate form fields and correct types.

All you have to do is to define a form type service for each entity for which you want to use a form type, like this:

```xml

my_custom_form_type_comment
My\CustomBundle\Entity\Comment
a_serialization_group

```

The service definition should contain the following arguments:

* The JMSSerializer metadata factory,
* The Doctrine ORM entity manager,
* The form type name,
* The entity class name for which you want to build form,
* The serialization group you want serialization fields have.