public function getLastInsertID() { foreach ($this->getTableInfo()->getColumns() as $column) { if ($column->hasSequence()) { return $this->getDbConnection()->getLastInsertID($column->getSequenceName()); } } }