PartKeepr\CoreBundle\Command\UpdateCategoryPathCommand::execute PHP Method

execute() public method

public execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    public function execute(InputInterface $input, OutputInterface $output)
    {
        $entities = ['PartKeepr\\FootprintBundle\\Entity\\FootprintCategory', 'PartKeepr\\PartBundle\\Entity\\PartCategory', 'PartKeepr\\StorageLocationBundle\\Entity\\StorageLocationCategory'];
        foreach ($entities as $entity) {
            $this->regenerateCategoryPaths($entity);
        }
    }