Closed adarshkhatri closed 9 years ago
If you are using Doctrine it is a good idea to declare a new field and metadata for it in the model "User" I guess in this case. Notice: We are using the "Code first" approach by using Doctrine
I see,
BTW when I declare form in view (phtml) file: $form->get('my_field')->setAttributes(array( 'required' => 'true', 'class' => 'form-control input-lg', ));
it throws an error. I have added a new entity file too.
Not sure if I try with your code first approach and run doctorine will fix this.
I will give this try tonight.
Thanks again.
This solved my requirement.
I am trying to add new input field in signup and edit user section.
However I am not sure where to add the form declaration for that field.
I have created a new column in user table, which is defined as FK.
Please help.