Sorry, MongoCursorException is a class of base of PHP. In your catch, you must add backslash : try { ... } catch (\MongoCursorException $e) { ... }
Good luck. 2010/12/11 eillarra <illa...@gmail.com> > I haven't added it. > But the exception is a MongoCursorException, or so it seems... > > E11000 duplicate key error index: db.users.$username_1 dup key: { : > "whatever" }*500* Internal Server Error - MongoCursorException > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en