Fix collection creation

This commit is contained in:
Nicolas Le Goff
2015-01-14 14:41:16 +01:00
parent 6199e41afd
commit 53da50ba99

View File

@@ -45,13 +45,11 @@ class CreateCollection extends Command
protected function doExecute(InputInterface $input, OutputInterface $output)
{
$databox = $this->container['phraseanet.appbox']
->get_databox((int) $input->getArgument('databox_id'));
$databox = $this->container['phraseanet.appbox']->get_databox((int) $input->getArgument('databox_id'));
$new_collection = \collection::create($app, $databox, $this->container['phraseanet.appbox'], $input->getArgument('collname'));
$new_collection = \collection::create($this->container, $databox, $this->container['phraseanet.appbox'], $input->getArgument('collname'));
if ($new_collection && $input->getOption('base_id_rights')) {
$query = new \User_Query($this->container);
$total = $query->on_base_ids(array($input->getOption('base_id_rights')))->get_total();