mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Update namespaces
This commit is contained in:
@@ -3,10 +3,11 @@
|
|||||||
namespace Alchemy\Phrasea\Command\Developer;
|
namespace Alchemy\Phrasea\Command\Developer;
|
||||||
|
|
||||||
use Alchemy\Phrasea\Command\Command;
|
use Alchemy\Phrasea\Command\Command;
|
||||||
|
use Doctrine\ORM\Tools\Setup;
|
||||||
|
use Doctrine\ORM\Tools\SchemaTool;
|
||||||
|
use Doctrine\ORM\EntityManager;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Doctrine\ORM\Tools\Setup;
|
|
||||||
use Doctrine\ORM\EntityManager;
|
|
||||||
use Symfony\Component\Filesystem\Filesystem;
|
use Symfony\Component\Filesystem\Filesystem;
|
||||||
|
|
||||||
class RegenerateSqliteDb extends Command
|
class RegenerateSqliteDb extends Command
|
||||||
@@ -38,7 +39,7 @@ class RegenerateSqliteDb extends Command
|
|||||||
|
|
||||||
$metadatas = $em->getMetadataFactory()->getAllMetadata();
|
$metadatas = $em->getMetadataFactory()->getAllMetadata();
|
||||||
|
|
||||||
$schemaTool = new \Doctrine\ORM\Tools\SchemaTool($em);
|
$schemaTool = new SchemaTool($em);
|
||||||
|
|
||||||
$schemaTool->createSchema($metadatas);
|
$schemaTool->createSchema($metadatas);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
Reference in New Issue
Block a user