コード例 #1
0
 public function runQuery($query)
 {
     $this->addQueryToLog($query);
     $this->connection->query($query);
     $this->connection->resetDdlCache();
     return $this;
 }
コード例 #2
0
 /**
  * @param Table $tableDdl
  * @return void
  */
 public function createTableByDdl($tableDdl)
 {
     $this->resourceAdapter->dropTable($tableDdl->getName());
     $this->resourceAdapter->createTable($tableDdl);
     $this->resourceAdapter->resetDdlCache($tableDdl->getName());
 }
コード例 #3
0
 /**
  * Cleanup DDL cache for the fixture table
  */
 protected function tearDown()
 {
     $this->_connection->dropTable($this->_tableName);
     $this->_connection->resetDdlCache($this->_tableName);
     $this->_connection = null;
 }