I want to save some data in a serialized array. The following
->add('consumptionData', 'sonata_type_native_collection', array(
'label' => 'Verbrauchsdaten',
'entry_type' => ConsumptionDataType::class,
'allow_add' => true,
'allow_delete' => true,
'entry_options' => array(
'label' => false
)
))
works fine with symfony but with sonata admin I get
A new entity was found through the relationship 'AppBundle\Entity\Document#meterPoints' that was not configured to cascade persist operations for entity ...
How can I tell sonata that it should be a serialized array and not an Entity?