src/StingerSoft/DoctrineCommons/Utils/JsonImporter.php
protected function after() {
		if($this->connection->getDatabasePlatform() instanceof SQLServerPlatform) {
			$this->connection->executeUpdate('exec sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"');
		} else if($this->connection->getDatabasePlatform() instanceof MySqlPlatform) {
			$this->connection->executeUpdate('SET FOREIGN_KEY_CHECKS=1');
		} else if($this->connection->getDatabasePlatform() instanceof SqlitePlatform) {
			$this->connection->executeUpdate('PRAGMA foreign_keys = ON');
		}
	}
protected function after() {
		if($this->connection->getDatabasePlatform() instanceof SQLServerPlatform) {
			$this->connection->executeUpdate('exec sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"');
		} else if($this->connection->getDatabasePlatform() instanceof MySqlPlatform) {
			$this->connection->executeUpdate('SET FOREIGN_KEY_CHECKS=1');
		} else if($this->connection->getDatabasePlatform() instanceof SqlitePlatform) {
			$this->connection->executeUpdate('PRAGMA foreign_keys = ON');
		}
	}
protected function after ( ) { if ( $ this -> connection -> getDatabasePlatform ( ) instanceof SQLServerPlatform ) { $ this -> connection -> executeUpdate ( 'exec sp_msforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all"' ) ; } else if ( $ this -> connection -> getDatabasePlatform ( ) instanceof MySqlPlatform ) { $ this -> connection -> executeUpdate ( 'SET FOREIGN_KEY_CHECKS=1' ) ; } else if ( $ this -> connection -> getDatabasePlatform ( ) instanceof SqlitePlatform ) { $ this -> connection -> executeUpdate ( 'PRAGMA foreign_keys = ON' ) ; } }
Executed after the import is finished
Executed after the import is finished