Scalr\Model\Entity\Role::isUsed PHP Method

isUsed() public method

Checks whether the Role is already used in some Farm
public isUsed ( ) : boolean
return boolean Returns TRUE if the Role is already used or FALSE otherwise
    public function isUsed()
    {
        return !!$this->db()->GetOne("\n            SELECT EXISTS(SELECT 1 FROM farm_roles WHERE role_id = ?)\n        ", [$this->id]);
    }