public function save($useMasterKey = false) { if (!$this->getACL()) { throw new AVException("Roles must have an ACL."); } if (!$this->getName() || !is_string($this->getName())) { throw new AVException("Roles must have a name."); } return parent::save($useMasterKey); }