I've seen many people trying to use FOSUserBundle.
I've been struggling with it for 6 hours now. Just to be able to make a custom user registration form. The basic documentation is 6 pages long: basic. Here are all the drawbacks of using FOSUserBundle, from my point of view:
- you have to copy paste their views to make inheritance possible
- they have their own table on the database:
fos_user
. So you have to base all your code on youruser
entity, which a child ofBaseUser
. If your database follows a convention (like wordpress does, with all tables beginning withwp_
) this breaks your convention. - you have to hack all you own views with things like "if the fos_user_content block is empty i suppose there's nothing to display, otherwise i have to re-organize my whole view to display the fos_user_content block (registration, modify user profile and so on)"
- and now I see that if you need two different registration forms (for example, one for client, one for partners) it's not possible unless you hack. See here.
So I'm just wondering: what is the point of using if FOSUserBundle? If I've already done a registration process that follows the very basic things explained in Symfony help (forms, form validation, and sessions) and I just copy paste my code, this is, from my point of view, far faster than installing, configuring, inheriting, modifying and so on the FOSUserBundle.
Knowing what I've done, what are the advantages of FOSUserBundle? What could make me change and take some more hours to make it work with my project, instead of re-using my (forms, form validation, and sessions) from another project?
t0
": – BottleneckAn exception occurred while executing 'SELECT t1.username AS username2, t1.username_canonical AS username_canonical3, t1.email AS email4, t1.email_canonical AS email_canonical5, t1.enabled AS enabled6, t1.salt AS salt7, t1.password AS password8,[...snap...] FROM person_teacher t1 WHERE t0.username_canonical = ?' with params ["[email protected]"]: SQLSTATE[42S22]: Column not found: 1054 Unknown column 't0.username_canonical' in 'where clause'
. – BottleneckDevise
in Ruby On Rails – Pluton