public function toArray()
{
$this->accessColumn(NULL);
return $this->data;
}
/** * @param \Nette\Database\Table\ActiveRow * @return \Nette\Security\Identity */ public function createIdentity(ActiveRow $user) { $data = $user->toArray(); unset($data['password']); $role = strtolower($user->ref('users_groups', 'group_id')->g_title); return new Identity($user->id, $role, $data); }