src/Connection/Connection.php
public function insertId ($name = null)
		{
			if ($name === null) {
				return $this->database->lastInsertId();
			} else {
				return $this->database->lastInsertId($name);
			}
		}
public function insertId ($name = null)
		{
			if ($name === null) {
				return $this->database->lastInsertId();
			} else {
				return $this->database->lastInsertId($name);
			}
		}
public function insertId ( $ name = null ) { if ( $ name === null ) { return $ this -> database -> lastInsertId ( ) ; } else { return $ this -> database -> lastInsertId ( $ name ) ; } }
lastId function.

@access public
@return int
lastId function .