Changes between Version 29 and Version 30 of S3/S3Model


Ignore:
Timestamp:
02/02/14 21:42:27 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Model

    v29 v30  
    193193
    194194- {{{super_entity}}} and {{{super_link}}} to define or reference super entities
    195 - {{{add_component}}} to define resource components
     195- {{{add_components}}} to define resource components
    196196- {{{configure}}} to define table configuration settings
    197197
     
    316316Components are sub-tables of a master entity ("has"-relationship).
    317317
    318 Components can be defined in S3Models using the {{{add_component}}} method, e.g.
     318Components can be defined in S3Models using the {{{add_components}}} method, e.g.
    319319
    320320{{{#!python
    321321# Offices (org_office table) are a component of organisations (org_organisation table),
    322322# linked through the organisation_id field in org_office
    323 current.s3db.add_component("org_office", org_organisation="organisation_id")
     323current.s3db.add_components("org_organisation", org_office="organisation_id")
    324324}}}
    325325