Granada\Orm\Wrapper::insert PHP Method

insert() public method

..), array('name2'=>'value2',...),..) or a array multiple
public insert ( $rows, $ignore = false )
    public function insert($rows, $ignore = false)
    {
        ORM::get_db()->beginTransaction();
        foreach ($rows as $row) {
            $class = $this->_class_name;
            $class::create($row)->save($ignore);
        }
        ORM::get_db()->commit();
        return ORM::get_db()->lastInsertId();
    }