protected function executeSelectKey($connection, $parameter, $selectKey)
{
$mappedStatement = $this->getManager()->getMappedStatement($selectKey->getID());
$generatedKey = $mappedStatement->executeQueryForObject($connection, $parameter, null);
if (strlen($prop = $selectKey->getProperty()) > 0) {
TPropertyAccess::set($parameter, $prop, $generatedKey);
}
return $generatedKey;
}