我有以下课程:
Class SearchTemplateDO [ Abstract ]
{
Relationship QueryParts As QueryPartDO [ Cardinality = many, Inverse = SearchTemplate ];
}
Class MyCustomSearchDO Extends (%Persistent, SearchTemplateDO)
{
/// inherits all properties / relationships from SearchTemplateDO
}
Class QueryPartDO Extends %Persistent
{
...
Relationship SearchTemplate As SearchTemplateDO
[ Cardinality = one, Inverse = QueryParts ];
Index SearchTemplateIndex On SearchTemplate;
}
当我在 SQL 中查看这两个表时,我看到 QueryPartDO 的 SearchTemplate 字段为空,当我查看 MyCustomSearchDO 时,我没有看到“QueryParts”字段,尽管两个表都有数据