src/Rbac/DbManager.php
public function hasChild($parent, $child)
    {
        return (new Query())
            ->from($this->itemChildTable)
            ->where(['parent' => $parent->name, 'child' => $child->name])
            ->one($this->db)
            ->then(function() {
                return true;
            });
    }
public function hasChild($parent, $child)
    {
        return (new Query())
            ->from($this->itemChildTable)
            ->where(['parent' => $parent->name, 'child' => $child->name])
            ->one($this->db)
            ->then(function() {
                return true;
            });
    }
{@inheritdoc}