You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
488 B
24 lines
488 B
|
11 years ago
|
<?php
|
||
|
|
/* For licensing terms, see /license.txt */
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Script needed to execute bin/doctrine.php in the command line
|
||
|
|
* in order to:
|
||
|
|
*
|
||
|
|
* - Generate migrations
|
||
|
|
* - Create schema
|
||
|
|
* - Update schema
|
||
|
|
* - Validate schema
|
||
|
|
* - Etc
|
||
|
|
**/
|
||
|
|
|
||
|
|
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
||
|
|
|
||
|
|
require_once 'main/inc/global.inc.php';
|
||
|
|
|
||
|
|
// replace with mechanism to retrieve EntityManager in your app
|
||
|
|
$entityManager = Database::getManager();
|
||
|
|
|
||
|
|
return ConsoleRunner::createHelperSet($entityManager);
|
||
|
|
|