public function collectDefaultData(FormInterface
$form): void
{ $hash =
spl_object_hash($form);
if (!
isset($this->dataByForm
[$hash])) { // field was created by form event
$this->
collectConfiguration($form);
} $this->dataByForm
[$hash] =
array_replace( $this->dataByForm
[$hash],
$this->dataExtractor->
extractDefaultData($form) );
foreach ($form as $child) { $this->
collectDefaultData($child);
} } public function collectSubmittedData(FormInterface
$form): void
{ $hash =
spl_object_hash($form);