Syfony2, MySQL employee entry form.
## Deliverables
I am needing a simple Employee bundle which consists of database entry form developed using the Symfony2 framework, PHP5, MySQL.? The purpose of the form is to enter employees into a MySQL database.? The fields will be validated using yaml or annotation method.? The fields will be as follows:
"id","district_id","school_id","first_name","middle_name","last_name", "nickname","address_1","address_2","city","state_id","postal_code", "home_phone","mobile_phone","email","ethnicity","citizenship", "enroll_date","photo","path","birth_date","gender","SSN", "former_school"
"id" should be auto_increment.? "district_id" and "school_id" should both be set to "1" in code.? There will be no visible form fields for these.? The required fields are "first_name","last_name", "address_1".? Should not rely on HTML5 for required fields.? ? State should be a choice field of U.S. states.? Ethnicity should be a choice field of ethnicities in the U.S.? The photo field is a File field that allows uplaoding of a picture of the employee.? The uploaded file should be renamed to a random string and stored in web/img.? All dates should be of field type "date" with the widget of "single_text" and an input of MM-DD-YYYY.? SSN and phone number fields should have input masks ###-##-#### and (###) ###-#### respectively.
Once the form is submitted, the user will be redirected to a success page which says "Employee Jane Doe has been created."
Twig should be used for the Views.? CSS is not that important, just the minimum is fine.