$formMapper ->tab('General') ->with('Profile') ->add('firstName') ->add('lastName') ->end() // end Profile group ->with('Contact') ->add('email') ->add('phone') ->end() // end Contact group ->end(); // end General tab
$formMapper ->add('title', 'text') ->add('description', 'textarea') ->end(); // end field configurationIn this example, the "end" method is used to close the configuration of two individual form fields called "title" and "description". The fields are defined using their field types, which are respectively "text" and "textarea".