If you are getting the 500 error (Call to undefined method myUser::isAnonymous.) after installing the sfGuardDoctrine plugin i.e

Add these lines in your apps/app name/config/factories.yml to make to pluging to work.
all:
user:
class: sfGuardSecurityUser
user:
class: sfGuardSecurityUser