Commit 265faf48 authored by jsor's avatar jsor

Allow array argument in addSql

parent bdbf2cfa
......@@ -68,12 +68,16 @@ class SchemaEventArgs extends EventArgs
}
/**
* @param string $sql
* @param string|array $sql
* @return SchemaEventArgs
*/
public function addSql($sql)
{
$this->_sql[] = $sql;
if (is_array($sql)) {
$this->_sql = array_merge($this->_sql, $sql);
} else {
$this->_sql[] = $sql;
}
return $this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment