protected function save(UrlAlias $alias)
    {
        $this->manager->persist($alias);

        if ($this->isBatch) {
            $this->batch[$alias->getPublicUrl()] = $alias;
        } else {
            $this->manager->flush($alias);
        }
    }