wip: refactor to cards with individual participant forms
This commit is contained in:
@@ -13,6 +13,9 @@ use Symfony\Component\Form\FormInterface;
|
||||
* This trait contains common form navigation logic used across different
|
||||
* form services and types. It centralizes the logic for finding root forms
|
||||
* and extracting booking DTOs from form hierarchies.
|
||||
*
|
||||
* Note: Card-based flows pass BookingDto via form options instead of
|
||||
* relying on form tree traversal.
|
||||
*/
|
||||
trait FormTraversalTrait
|
||||
{
|
||||
@@ -20,8 +23,8 @@ trait FormTraversalTrait
|
||||
* Gets the BookingDto from the root of the form tree.
|
||||
*
|
||||
* This helper method traverses up the form tree to find the root form
|
||||
* and extracts the BookingDto data. This is shared logic used
|
||||
* by both create and edit participant forms.
|
||||
* and extracts the BookingDto data. This is used as a fallback when
|
||||
* BookingDto is not passed explicitly via form options.
|
||||
*
|
||||
* @param FormInterface $form The form to start traversing from
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user