bjyoungblood/BjyAuthorize — pull request #40 by adamlundrigan (2012-10-25 12:13:58+00:00)
Title: Update Doctrine role provider to build role hierarchy properly

When the Doctrine role provider builds it's tree of roles, it will create new instances of each parent role each time rather than re-using a pre-existing instance:

![Pre Example](http://s.lundrigan.ca/d1b13b.png)

The fix is exactly the same as I orignally implemented for ZendDb (See #8)

1. Build every role object first
2. Perform parent object injections where necessary

With fix applied, the 'user' role object is re-used and the complete recursive role hierarchy is built properly:

![Post Example](http://s.lundrigan.ca/f98c15.png)