symfony/symfony-docs — pull request #1874 by alex88 (2012-10-31 10:13:15+00:00)
Title: Updated "Load security users from database"

I've updated the "How to load Security Users from the Database" cookbook to include fix this error:

PHP Fatal error: Call to a member function getRole() on a non-object in /vendor/symfony/symfony/src/Symfony/Component/Security/Core/Role/RoleHierarchy.php on line 47

which is happening in PHP > 5.4.
The fix is taken by this issue: https://github.com/symfony/symfony/issues/3691#issuecomment-9831914