sonata-project/SonataAdminBundle — pull request #750 by Romain-Geissler (2012-05-14 11:57:36+00:00)
Title: Allow read-only fields when editing collections of entities.

Currently when you edit collections of sub entities (in a inline table for example), you cannot use read only fields, otherwise the previously held and valid read only value will be set to the default value returned by the associated ``DataTransformer`` when adding new rows.

This patch first populate the old persisted value to the ``Form``, then populate form data, so that read only fieldis don't get erased by default values (using exactly the same pattern used ``CRUDController::editAction``).