public function setAclRoles(array $data = array()) { if (empty($this->id)) { throw new \Scalr\Acl\Exception\AclException("Object hasn't been initialized. Identifier of the user is expected."); } \Scalr::getContainer()->acl->setAllRolesForUser($this->id, $data, $this->getAccountId()); }