source/Core/Database/Adapter/Doctrine/Database.php
public function getLastInsertId()
    {
        try {
            $lastInsertId = $this->getConnection()->lastInsertId();
        } catch (DBALException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        } catch (PDOException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        }

        return $lastInsertId;
    }
public function getLastInsertId()
    {
        try {
            $lastInsertId = $this->getConnection()->lastInsertId();
        } catch (DBALException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        } catch (PDOException $exception) {
            $exception = $this->convertException($exception);
            $this->handleException($exception);
        }

        return $lastInsertId;
    }
public function getLastInsertId ( ) { try { $ lastInsertId = $ this -> getConnection ( ) -> lastInsertId ( ) ; } catch ( DBALException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } catch ( PDOException $ exception ) { $ exception = $ this -> convertException ( $ exception ) ; $ this -> handleException ( $ exception ) ; } return $ lastInsertId ; }
Return string representing the row ID of the last row that was inserted into
the database.
Returns 0 for tables without autoincrement field.

@return string|int Row ID
Return string representing the row ID of the last row that was inserted into the database . Returns 0 for tables without autoincrement field .