1 | <?php |
||
2 | use Doctrine\ORM\Tools\Console\ConsoleRunner; |
||
3 | use Doctrine\ORM\Tools\Setup; |
||
4 | use Doctrine\ORM\EntityManager; |
||
5 | |||
6 | require_once __DIR__ . '/vendor/autoload.php'; |
||
7 | |||
8 | // Create a simple "default" Doctrine ORM configuration for Annotations |
||
9 | $config = Setup::createAttributeMetadataConfiguration([__DIR__ . '/test/Entity'], true); |
||
10 | |||
11 | // database configuration parameters |
||
12 | $conn = array( |
||
13 | 'driver' => 'pdo_sqlite', |
||
14 | 'dbname' => ':memory:', |
||
15 | ); |
||
16 | |||
17 | // obtaining the entity manager |
||
18 | $entityManager = EntityManager::create($conn, $config); |
||
0 ignored issues
–
show
|
|||
19 | |||
20 | return ConsoleRunner::createHelperSet($entityManager); |
||
21 | |||
22 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.