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