src/DbStatement.php
/**
     * @throws \Exception if something goes wrong (error message includes the original error message and the query string)
     * @return last insert id or $this if nothing was inserted
     */
@throws \Exception if something goes wrong (error message includes the original error message and the query string)
@return last insert id or $this if nothing was inserted
@throws \ Exception if something goes wrong ( error message includes the original error message and the query string ) @return last insert id or $this if nothing was inserted
public function execute(): self
    {
        $this->allRows = null;
        try {
            $this->statement->execute();
        } catch (\Exception $e) {
            throw new \Exception(get_class($e) . ': ' . $e->getMessage() . '; Query String was: ' . $this->queryString);
        }
        $this->insertId = $this->db->getLastInsertId();
        return $this;
    }
public function execute ( ) : self { $ this -> allRows = null ; try { $ this -> statement -> execute ( ) ; } catch ( \ Exception $ e ) { throw new \ Exception ( get_class ( $ e ) . ': ' . $ e -> getMessage ( ) . '; Query String was: ' . $ this -> queryString ) ; } $ this -> insertId = $ this -> db -> getLastInsertId ( ) ; return $ this ; }
@throws \Exception if something goes wrong (error message includes the original error message and the query string)
 @return last insert id or $this if nothing was inserted
@throws \ Exception if something goes wrong ( error message includes the original error message and the query string ) @return last insert id or $this if nothing was inserted