Prado\Data\Common\TDbCommandBuilder::getLastInsertID PHP Метод

getLastInsertID() публичный Метод

Iterate through all the columns and returns the last insert id of the first column that has a sequence or serial.
public getLastInsertID ( ) : mixed
Результат mixed last insert id, null if none is found.
    public function getLastInsertID()
    {
        foreach ($this->getTableInfo()->getColumns() as $column) {
            if ($column->hasSequence()) {
                return $this->getDbConnection()->getLastInsertID($column->getSequenceName());
            }
        }
    }