I have a system for student and teacher (and many other profiles). I assign User for each profile.
Because I have many type of profile (teacher, student, program manager, … ), and each profile has some specific information, so that I cannot make it like a type of User.
Now after login, I want to add more information in User. I mean when I get User viaPHP1$this->get('security.context')->getToken()->getUser()
I can get additional information such as User is Student or Teacher, which class and program he belongs to, etc.
Do anyone know the way to do?
You must be logged in to reply to this topic.