Changes between Version 25 and Version 26 of S3/S3Model


Ignore:
Timestamp:
01/27/14 11:31:44 (7 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Model

    v25 v26  
    44See also:
    55
    6   - [wiki:S3/S3Model/ComponentResources Component Resources]
    76  - [wiki:S3/S3Model/SuperEntities Super-Entities]
    87
     
    317316}}}
    318317
     318=== Adding Components ===
     319
     320Components (projected entities) can be defined in S3Models using the {{{add_component}}} method:
     321
     322{{{
     323current.s3db.add_component(<component_table_name>, <master_table_name>=<join>)
     324}}}
     325
     326The {{{add_component()}}} method is available both in {{{S3Model}}} instances ({{{self.add_component}}}, {{{s3db.add_component}}}) as well as from the class ({{{S3Model.add_component}}}).
     327
     328Read more here: [wiki:S3/S3Model/ComponentResources Component Resources]
     329
    319330----
    320331