gws.plugin.model_field.related_linked_feature_list
¶
Related Linked Feature List field
Represents an M:N relationship between two models via a link table (“associative entity”):
+---------+ +---------------+ +---------+
| table A | | link table | | table B |
+---------+ +---------------+ +---------+
| key_a |-------<<| a b |>>-------| key_b |
+---------+ +---------------+ +---------+
Source code: gws.plugin.model_field.related_linked_feature_list
Package Contents¶
- class gws.plugin.model_field.related_linked_feature_list.Config¶
Bases:
gws.base.model.related_field.Config
Configuration for related linked feature list field.
- fromColumn: str = ''¶
Key column in this table, primary key by default.
- linkFromColumn: str¶
Link key column for this model.
- linkTableName: str¶
Link table name.
- linkToColumn: str¶
Link key column for the related model.
- toColumn: str = ''¶
Key column in the related table, primary key by default.
- toModel: str¶
Related model.
- class gws.plugin.model_field.related_linked_feature_list.Object¶
Bases:
gws.base.model.related_field.Object
- attributeType¶
- after_create(feature, mc)¶
- after_create_related(to_feature, mc)¶
- after_select(features, mc)¶
- after_update(feature, mc)¶
- after_write(feature, key, mc: gws.ModelContext)¶
- configure_relationship()¶
- create_links(links, mc)¶
- delete_links(links, mc)¶
- get_links(left_keys, mc)¶
- class gws.plugin.model_field.related_linked_feature_list.Props¶