Guy van
I decided to use FOSUserBundle to handle user authentication in my application. In my application, companies can register their data (name, address, etc.).
Therefore, I decided to create a company called "Company" to store data associated with the company, and an object called "User" to separately store user data from FOSUserBundle.
I started to redefine the default registration form, as described in the documentation Overriding the FOSUserBundle default forms , but the problem is that I can’t add my fields from the Company to the form, it always tries to access the User object (perhaps because this is due to FOSUserBundle).
Is there a way to put company entity fields in the FOSUser registration form?
I don’t want to spoil the data model, using the company as the base object for FOSUser and adding all the fields to it (username, email address, password, etc.).
Yours faithfully,
source share