Kohana 3 auth module, getting users with 'staff' or 'manager' role
问题 I'm learning the framework, and now building an application using it. I need to get all users that have 'user' or 'staff' role, but I couldn't find about it on the documentation. Help anyone? (I think it's more an ORM problem the the auth module) 回答1: I didn't find an easy way to do this using the ORM, but I have a workaround. This is my code for anyone who might encounter the same problem with me. // One for each role $staffs = ORM::factory('role', array('name' => 'staff'))->users->find_all(