public getLastInsertID ( ) : mixed | ||
return | 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());
}
}
}