public function insertAndGetLastId(array $values)
    {
        $this->insert($values);

        $n = $this->connection->lastInsertId();

        return $n;
    }
public function insertAndGetLastId(array $values)
    {
        $this->insert($values);

        $n = $this->connection->lastInsertId();

        return $n;
    }
public function insertAndGetLastId ( array $ values ) { $ this -> insert ( $ values ) ; $ n = $ this -> connection -> lastInsertId ( ) ; return $ n ; }
InsertAndGetLastId action launches the insert and lastInsertId actions

@param array $values

@return int
InsertAndGetLastId action launches the insert and lastInsertId actions