I am deploying a SF2.1 project into production.
I have customized the user model so that certain fields are required.
So when I try to create my super admin
$ php app/console fos:user:create admin [email protected] my_pass --super-admin
I'm getting
[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'my_required_field' cannot be null
What is the clean way to manage that ?
I Imagine not manually inserting the user into the table...