/** * Replaces rows in the database. * @param mixed[][] * @return void */ public function replaceAll($rows) { $connection = $this->manager->getConnection(); $driver = $connection->getSupplementalDriver(); $connection->query('REPLACE INTO ' . $driver->delimite($this->name), $rows); }
/** * Creates a new row. * @param mixed[] * @return \Nette\Database\Table\ActiveRow */ protected function createRow(array $data) { return $this->manager->getRowFactory()->createRow($data, $this); }