0

See the code example below:

public function buildForm(FormBuilder $builder, array $options)
{
    $builder->add('firstname');
    $builder->add('lastname');
    $builder->add('QualificationGradeOne'); // from Qualification Model
    // show some more user info
    $builder->add('address1');
    $builder->add('address2');
    $builder->add('QualificationGradeTwo'); // from Qualification Model
    /* ... */

This isnt my actual code. I've just shown it this way so that everyone understands my problem without knowing exactly the database structure etc of my application.

Does anyone know how to do this so that I can add one field of the Qualification model, then a few more User components, then adding a further few Qualification components. I've looked at creating a Qualification Form Type, however that returns back components all together and not individually.

Thanks in advance

1 Answer 1

2
$builder->add('gradeone', new QualificationGradeOne());
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.