cartalyst/sentry — Issue #34: Groups can not be created.
Author: davidber
Created: 2012-01-05 00:00:43+00:00
State: open

Sentry::group()->create('users');

returns

Warning!

ErrorException [ Warning ]: array_key_exists() expects parameter 2 to be array, string given

PKGPATH/sentry/classes/sentry/group.php @ line 95:

94:	{
95:	if ( ! array_key_exists('name', $group))
96:	{

Sentry::group()->create(array('name'=> 'users'));

Returns

ErrorException [ Error ]: Cannot access protected property Sentry\Sentry_Group::$table

PKGPATH/sentry/classes/sentry.php @ line 447

442 * @param string Group name
443 * @return bool
444 */
445 public function group_exists($name)
446 {
447 $group = DB::select('id')->from(static::$table)->where('name', $name)->limit(1)->execute();
448
449 return (bool) count($group);
450 }
451
452 /**