protected function addSql($sql, array $params = array(), array $types = array()) { $this->version->addSql($sql, $params, $types); }
/** * Test add sql */ public function testAddSql() { $configuration = new Configuration($this->getSqliteConnection()); $version = new Version($configuration, $versionName = '003', 'Doctrine\\DBAL\\Migrations\\Tests\\Stub\\VersionDummy'); $this->assertNull($version->addSql('SELECT * FROM foo')); $this->assertNull($version->addSql(array('SELECT * FROM foo'))); $this->assertNull($version->addSql(array('SELECT * FROM foo WHERE id = ?'), array(1))); $this->assertNull($version->addSql(array('SELECT * FROM foo WHERE id = ?'), array(1), array(\PDO::PARAM_INT))); }
protected function addSql($sql, array $params = array()) { return $this->version->addSql($sql, $params); }
protected function addSql($sql) { return $this->version->addSql($sql); }