|
@@ -168,7 +168,7 @@ class Route_Storage_TestXsd extends RouteBase {
|
|
|
if (!empty($foreignKeys)) {
|
|
if (!empty($foreignKeys)) {
|
|
|
foreach ($foreignKeys as $key) {
|
|
foreach ($foreignKeys as $key) {
|
|
|
$xmlWriter->startElement('xs:element');
|
|
$xmlWriter->startElement('xs:element');
|
|
|
- $xmlWriter->writeAttribute('name', $key['REFERENCED_COLUMN_NAME']); //todo may not be unique - to be set table__x3A__name
|
|
|
|
|
|
|
+ $xmlWriter->writeAttribute('name', $key['COLUMN_NAME']); //todo may not be unique - to be set table__x3A__name
|
|
|
$refPrefix = (DB::getPDO()->getZasobId() === $idStorage) ? 'p5_default_db' : "p5_zasob_{$idStorage}";
|
|
$refPrefix = (DB::getPDO()->getZasobId() === $idStorage) ? 'p5_default_db' : "p5_zasob_{$idStorage}";
|
|
|
$xmlWriter->writeAttribute('type', "{$refPrefix}:{$key['REFERENCED_TABLE_NAME']}"); //it is better to show it as type to be than translated to references than having fake ref
|
|
$xmlWriter->writeAttribute('type', "{$refPrefix}:{$key['REFERENCED_TABLE_NAME']}"); //it is better to show it as type to be than translated to references than having fake ref
|
|
|
$xmlWriter->startElement('xs:annotation');
|
|
$xmlWriter->startElement('xs:annotation');
|