From f6f6781a65a0484bc918265d3fdefdd70b932cce Mon Sep 17 00:00:00 2001 From: Moctar Date: Fri, 21 Mar 2014 20:38:03 +0100 Subject: [PATCH] fix migration from 3.1 --- lib/Alchemy/Phrasea/Command/Upgrade/Step31.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/Command/Upgrade/Step31.php b/lib/Alchemy/Phrasea/Command/Upgrade/Step31.php index 4e05293db6..494b2d28f8 100644 --- a/lib/Alchemy/Phrasea/Command/Upgrade/Step31.php +++ b/lib/Alchemy/Phrasea/Command/Upgrade/Step31.php @@ -124,7 +124,7 @@ class Step31 implements DatasUpgraderInterface $uuid = \uuid::generate_v4(); try { $media = $this->app['mediavorus']->guess($pathfile); - $collection = \collection::get_from_coll_id($app, $databox, (int) $record['coll_id']); + $collection = \collection::get_from_coll_id($this->$app, $databox, (int) $record['coll_id']); $file = new File($this->app, $media, $collection); $uuid = $file->getUUID(true, true);