ソースを参照

fix schema name @type for parsing to install ant-objects

a.binder 8 年 前
コミット
09dda165b6
1 ファイル変更1 行追加0 行削除
  1. 1 0
      SE/se-lib/Route/Storage/TestXsd.php

+ 1 - 0
SE/se-lib/Route/Storage/TestXsd.php

@@ -168,6 +168,7 @@ class Route_Storage_TestXsd extends RouteBase {
 		if (!empty($foreignKeys)) {
 			foreach ($foreignKeys as $key) {
 				$xmlWriter->startElement('xs:element');
+				$xmlWriter->writeAttribute('name', $key['REFERENCED_COLUMN_NAME']); //todo may not be unique - to be set table__x3A__name
 				$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->startElement('xs:annotation');