ZF-Commons/zfc-rbac — pull request #148 by bakura10 (2013-12-26 15:56:40+00:00)
Title: Throw exception if role not found

@Orkin had a problem when he tried to use the ObjectRepositoryRoleProvider when logged out, because a "guest" role was retrieved but it was not in database. "findBy" returns null and the code silently failed.

This code now checks if object repository role provider returns exactly what was asked.

@arekkas @danizord nice idea or did I miss something?