@@ 389-402 (lines=14) @@ | ||
386 | return $this; |
|
387 | } |
|
388 | ||
389 | private function dropTables() |
|
390 | { |
|
391 | $this->resetNatTimer(); |
|
392 | ||
393 | $em = $this->getEntityManager(); |
|
394 | $metadatas = $em->getMetadataFactory()->getAllMetadata(); |
|
395 | $schemaTool = new SchemaTool($em); |
|
396 | ||
397 | $schemaTool->dropSchema($metadatas); |
|
398 | ||
399 | $em->getConnection()->executeQuery('DROP TABLE IF EXISTS doctrine_migration_versions'); |
|
400 | ||
401 | return $this; |
|
402 | } |
|
403 | ||
404 | /** |
|
405 | * @return EntityManager |
|
@@ 436-447 (lines=12) @@ | ||
433 | return $em = $this->app['orm.em']; |
|
434 | } |
|
435 | ||
436 | private function createTables() |
|
437 | { |
|
438 | $this->resetNatTimer(); |
|
439 | ||
440 | $em = $this->getEntityManager(); |
|
441 | $metadatas = $em->getMetadataFactory()->getAllMetadata(); |
|
442 | $schemaTool = new SchemaTool($em); |
|
443 | ||
444 | $schemaTool->createSchema($metadatas); |
|
445 | ||
446 | return $this; |
|
447 | } |
|
448 | ||
449 | private function insert() |
|
450 | { |