Pimcore\Model\User\UserRole\Dao::getById PHP Method

getById() public method

public getById ( $id )
$id
    public function getById($id)
    {
        parent::getById($id);
        if (in_array($this->model->getType(), ["user", "role"])) {
            $this->loadWorkspaces();
        }
    }