Skip to content

Commit

Permalink
允许定义不包含任何表的空模型,避免空模型编译报错
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Sep 7, 2023
1 parent 94f01ab commit 130a09e
Show file tree
Hide file tree
Showing 2 changed files with 8,283 additions and 4,932 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ ormNode.setAttr('xmlns:orm-gen','orm-gen');
ormNode.setAttr('xmlns:xpl','xpl');
ormNode.setAttr('xmlns:ui','ui');
ormNode.prepend(`<x:post-extends x:override="replace"><orm-gen:DefaultPostExtends xpl:lib="/nop/orm/xlib/orm-gen.xlib" /></x:post-extends>`);
ormNode.childByTag('entities').children.forEach(entity=>{
entity.childByTag('columns').children.forEach(col=>{
ormNode.childByTag('entities')?.children?.forEach(entity=>{
entity.childByTag('columns')?.children?.forEach(col=>{
if(col.attrCsvSet('tagSet')?.contains('del')){
col.removeAttr('propId');
col.setAttr('x:override','remove');
Expand Down
Loading

0 comments on commit 130a09e

Please sign in to comment.