Changes between Version 9 and Version 10 of S3/S3Model/SuperEntities
- Timestamp:
- 11/08/10 19:19:32 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3Model/SuperEntities
v9 v10 25 25 26 26 To define a super-entity, you can use the {{{super_entity()}}} function: 27 28 {{{ 29 table = super_entity(tablename, "sit_id", situation_types, 30 Field("datetime", "datetime"), # shared field 31 location_id(), # shared field 32 migrate=migrate) 33 }}} 27 34 28 35 You can define so-called ''shared fields'' in the super-entity, which are mirrored from the respective resource record. This allows to easily access these data from the component without the need to involve the primay instance table in the backward-join: