Symfony / Doctrine - Multiple Users Types
问题 I'm creating a website that should have at least two types of users, Company and Client, two of them have the same login form and different registration forms, and they can send messages to each other ... Normaly (Without think about Doctrine) I think the database should look something like that: User (id, email, password, facebook_id, roles) Company (id, user_id, name, city, ...) Client (id, user_id, name, sex ...) Messages (id, sender_id(user_id), receiver_id(user_id), message, ...) ... So