ZF-Commons/ZfcRbac — pull request #27 by stefankleff (2012-11-28 16:10:09+00:00)
Title: Allow easy usage of custom Role class 

To use a custom class inherit from from AdjacencyList/Role/DoctrineDbal.php and overwrite createRole() according to your needs.
```php
class MyProvider extends DoctrineDbal {

protected function createRole(array $row) {
$role = new My\Custom\Role($row['name']);
// Optional: $role->setId($row['id']);
return $role;
}

}
```