How to access data from the parent form?

There are two FormType - Deal and DealPropValue. DealPropValue signed on the event of the FormEvents::SUBMIT:

 function (FormEvent $event) use ($formModifier) {
 $deal = $event->getForm()->getParent()->getData();

When you submit forms for DealType, in the event that Deal come the old values and not the ones that were salabmisri.
How to do it properly? Thank you!
July 9th 19 at 13:21

Find more questions by tags Symfony