src/Database/Migration/Table.php
public function insert($data)
    {
        // handle array of array situations
        if (isset($data[0]) && is_array($data[0])) {
            foreach ($data as $row) {
                $this->data[] = $row;
            }

            return $this;
        }
        $this->data[] = $data;

        return $this;
    }
public function insert($data)
    {
        // handle array of array situations
        if (isset($data[0]) && is_array($data[0])) {
            foreach ($data as $row) {
                $this->data[] = $row;
            }

            return $this;
        }
        $this->data[] = $data;

        return $this;
    }
public function insert ( $ data ) { // handle array of array situations if ( isset ( $ data [ 0 ] ) && is_array ( $ data [ 0 ] ) ) { foreach ( $ data as $ row ) { $ this -> data [ ] = $ row ; } return $ this ; } $ this -> data [ ] = $ data ; return $ this ; }
Insert data into the table.

@param array $data array of data in the form:
array(
array("col1" => "value1", "col2" => "anotherValue1"),
array("col2" => "value2", "col2" => "anotherValue2"),
)
or array("col1" => "value1", "col2" => "anotherValue1")

@return Table
Insert data into the table .