src/ORM/Connect/TempDatabase.php
public function resetDBSchema(array $extraDataObjects = [])
    {
        // Skip if no DB
        if (!$this->isUsed()) {
            return;
        }

        try {
            $this->rebuildTables($extraDataObjects);
        } catch (DatabaseException $ex) {
            // In case of error during build force a hard reset
            // e.g. pgsql doesn't allow schema updates inside transactions
            $this->kill();
            $this->build();
            $this->rebuildTables($extraDataObjects);
        }
    }
public function resetDBSchema(array $extraDataObjects = [])
    {
        // Skip if no DB
        if (!$this->isUsed()) {
            return;
        }

        try {
            $this->rebuildTables($extraDataObjects);
        } catch (DatabaseException $ex) {
            // In case of error during build force a hard reset
            // e.g. pgsql doesn't allow schema updates inside transactions
            $this->kill();
            $this->build();
            $this->rebuildTables($extraDataObjects);
        }
    }
public function resetDBSchema ( array $ extraDataObjects = [ ] ) { // Skip if no DB if ( ! $ this -> isUsed ( ) ) { return ; } try { $ this -> rebuildTables ( $ extraDataObjects ) ; } catch ( DatabaseException $ ex ) { // In case of error during build force a hard reset // e.g. pgsql doesn't allow schema updates inside transactions $ this -> kill ( ) ; $ this -> build ( ) ; $ this -> rebuildTables ( $ extraDataObjects ) ; } }
Reset the testing database's schema.

@param array $extraDataObjects List of extra dataobjects to build
Reset the testing database s schema .