cartalyst/sentry — Issue #23: Some getters return associative arrays rather than model instances
Author: tabacco
Created: 2011-12-29 09:01:30+00:00
State: open

These are two I've noticed:

```php
Sentry::group('some_group')->users();
Sentry::user('some_user')->groups();
```

Both return an array of arrays, rather than an array of model instances as you'd expect:

```
>>> Sentry::group('users')->users();
array (
0 =>
array (
'id' => '1',
'username' => '',
'email' => 'fake@fake.com,
'activation_hash' => '',
'last_login' => '1325120727',
'ip_address' => '::1',
'updated_at' => '1325132238',
'created_at' => '1325059176',
'status' => '1',
'activated' => '1',
),
)
>>> Sentry::user('fake@fake.com')->groups()
array (
0 =>
array (
'id' => '1',
'name' => 'users',
'level' => '10',
'is_admin' => '0',
),
)
```