public createInsertCommand ( $data ) : TDbCommand | ||
Résultat | TDbCommand | insert command |
public function createInsertCommand($data)
{
$table = $this->getTableInfo()->getTableFullName();
list($fields, $bindings) = $this->getInsertFieldBindings($data);
$command = $this->createCommand("INSERT INTO {$table}({$fields}) VALUES ({$bindings})");
$this->bindColumnValues($command, $data);
return $command;
}