public function insert($table, $columns)
    {
        $cmdPromise = $this->createCommand()->insert($table, $columns)->execute();
        return $this->execPromise($cmdPromise, "insert into $table");
    }
public function insert($table, $columns)
    {
        $cmdPromise = $this->createCommand()->insert($table, $columns)->execute();
        return $this->execPromise($cmdPromise, "insert into $table");
    }
public function insert ( $ table , $ columns ) { $ cmdPromise = $ this -> createCommand ( ) -> insert ( $ table , $ columns ) -> execute ( ) ; return $ this -> execPromise ( $ cmdPromise , "insert into $table" ) ; }
Creates and executes an INSERT SQL statement.
The method will properly escape the column names, and bind the values to be inserted.
@param string $table the table that new rows will be inserted into.
@param array  $columns the column data (name => value) to be inserted into the table.
@return LazyPromiseInterface
Creates and executes an INSERT SQL statement . The method will properly escape the column names and bind the values to be inserted .