src/Rbac/DbManager.php
public function removeChildren($parent)
    {
        return $this->db->createCommand()
            ->delete($this->itemChildTable, ['parent' => $parent->name])
            ->execute()
            ->then(function($count = 0) {
                return $this->invalidateCache()
                    ->then(function() use ($count) {
                        return $count > 0;
                    });
            });
    }
public function removeChildren($parent)
    {
        return $this->db->createCommand()
            ->delete($this->itemChildTable, ['parent' => $parent->name])
            ->execute()
            ->then(function($count = 0) {
                return $this->invalidateCache()
                    ->then(function() use ($count) {
                        return $count > 0;
                    });
            });
    }
{@inheritdoc}