I'm using FriendsOfSymfony/FOSUserBundle (Doctrine). All works fine, except I would like to select user with my custom selector (find method) because I would like to make some joints.
Is there any way better then FoS bundle code changes?
UPDATE:
I know about the possibility to use custom findOneBy... (from my own repository class), but I think this way is incorrect: when you see this method's definition you don't expect some side-effects and if you redeclare it you will always have them. From my point of view, I should make some method findOneBy...Join... and use it inside custom UserManager or some sort of its delegate to retrieve in controller with $this->getUser().
UPDATE2: After I found the solution... I don't think that my question is duplicate of Extends UserManager in Symfony2 with FOSUserBundle. Yes, extending is the key, but in that question it's discussed how to extend (some specific class) and in mine I got answer that extension is what I need. I mean that it's hard to find that solution with the question, similar to mine (at least, I tried before asking).