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

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_select(features, mc)
after_update(feature, mc)
after_write(feature, key, mc: gws.ModelContext)
configure_relationship()
class gws.plugin.model_field.related_linked_feature_list.Props

Bases: gws.base.model.related_field.Props