PUGX / PUGXMultiUserBundle

An extension for FOSUserBundle to handle users of different types. Compatible with Doctrine ORM.
163 stars 96 forks source link

Catch ORMException when the model does not have the property added to the criteria #66

Closed sfblaauw closed 9 years ago

sfblaauw commented 10 years ago

Hi, some times some models does not have the property added to the criteria used in findOneBy. For example I am using HWIOAuthBundle and only the model User has the property facebookId which is the property added to the criteria to find the user. When the property not exsite in a Model, for example Admin, Doctrine throw a exception. Sorry for reformatting of empty spaces.

sfblaauw commented 9 years ago

ping @leopro, any news?