Farouk Douglas
Farouk Douglas

Reputation: 55

symfony user roles and class diagram

suppose we have a symfony project with 3 roles ( role_user, role_admin, role_superadmin) where the super admin can promote a user to be an admin or depromote him back to a user state. The question is in a class diagram, will these roles be presented by 3 classes or we gonna have just one class "User" with a "role" attribute ?

Upvotes: 0

Views: 181

Answers (1)

Andrew Vakhniuk
Andrew Vakhniuk

Reputation: 594

It will be one class User with a role string attribute.

Upvotes: 0

Related Questions