protected function getPreGeneratedSelectKey($connection, $parameter) { if ($this->_statement instanceof TSqlMapInsert) { $selectKey = $this->_statement->getSelectKey(); if ($selectKey !== null && !$selectKey->getIsAfter()) { return $this->executeSelectKey($connection, $parameter, $selectKey); } } }