Prado\Data\Common\TDbCommandBuilder::createInsertCommand PHP Method

createInsertCommand() public method

Each array key in the $data array must correspond to the column name of the table (if a column allows to be null, it may be omitted) to be inserted with the corresponding array value.
public createInsertCommand ( $data ) : TDbCommand
return 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;
    }