I've been working with Symfony2 for a few weeks, and loving it.
However, I am a bit confused with an aspect. Say I have two bundles, which each have a "User" entity, which stores information about that user.
However, I want to be able to do actual authentication with whatever authentication the site admin chooses (even if it isn't one of the user entities from my bundles).
What are the best practices to organize these Entities and link them all up, while remaining flexible with the actual authentication.
Thanks.
UPDATE: Here is a clarification.
Imagine I have two bundles: forum and wiki.
Now, for the users, there is a lot of different data that those two systems would want to store. So, each would have some place to store them (like two different tables). However, neither of them store authentication information, only other information.
The idea would be that whichever authentication method was used, they would be able to get that token then determine which user data they should use in their own bundles. That way, the bundles would be able to work independently of each other as well as independently of the authentication method.