I am a teacher and I want to write my own system for our school to manage all the stuff.
For this I need to register first my school (in the future there will perhaps other schools which want to use our system). Then I want to be able to register new teachers, pupils, parents and other workers like the household personal and so on...
My question now is: is it enough for this usage to get the users different roles or should I create different user classes for every different kind of user? For example Appbundle/Entity/User/teachers.php
Perhaps there are other solutions like ACL or voters which I don't really know much about.
I would use:
type
enum field (e.g. "teacher", "parent", "pupil", ...)I think it's future proof: a teacher in a school may be a parent in an other one :)