예제 #1
0
파일: Table.php 프로젝트: fabik/database
 /**
  * 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);
 }
예제 #2
0
 /**
  * Creates a new row.
  * @param  mixed[]
  * @return \Nette\Database\Table\ActiveRow
  */
 protected function createRow(array $data)
 {
     return $this->manager->getRowFactory()->createRow($data, $this);
 }