Changes between Version 9 and Version 10 of S3/S3Model/SuperEntities


Ignore:
Timestamp:
11/08/10 19:19:32 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Model/SuperEntities

    v9 v10  
    2525
    2626To define a super-entity, you can use the {{{super_entity()}}} function:
     27
     28{{{
     29table = super_entity(tablename, "sit_id", situation_types,
     30                     Field("datetime", "datetime"), # shared field
     31                     location_id(),                 # shared field
     32                     migrate=migrate)
     33}}}
    2734
    2835You 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: