fix missing var

`parentId` should be `parentPk`, `alias` should be `relation`