table = $table; $this->row = $row; } /** * @throws DbException */ public function save() { DB::rawQuery('INSERT INTO ' . $this->table->getTableName() . ' VALUES ('.implode(',', array_fill(0, count($this->row), '?')).')', $this->row); } }