From a8d444e40e56180212c097852b41a0deb224489e Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sun, 13 Jan 2013 14:33:03 -0500 Subject: [PATCH] Fix UsernameNotFoundException example (take 2) here is the fix properly applied to master --- cookbook/security/entity_provider.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/security/entity_provider.rst b/cookbook/security/entity_provider.rst index e67be2213f4..3213a5d0ee5 100644 --- a/cookbook/security/entity_provider.rst +++ b/cookbook/security/entity_provider.rst @@ -384,7 +384,7 @@ The code below shows the implementation of the // if there is no record matching the criteria. $user = $q->getSingleResult(); } catch (NoResultException $e) { - throw new UsernameNotFoundException(sprintf('Unable to find an active admin AcmeUserBundle:User object identified by "%s".', $username), null, 0, $e); + throw new UsernameNotFoundException(sprintf('Unable to find an active admin AcmeUserBundle:User object identified by "%s".', $username), 0, $e); } return $user;