-
Notifications
You must be signed in to change notification settings - Fork 8
RelationshipOneToMany
iraichi edited this page Apr 24, 2015
·
8 revisions
Please refer to here for general informatios about models.
If you define an "has many" reference between models you are creating a Master/Detail relationship. You have to operate in both master and detail model:
- Master model: define the
DetailReferencesnode listing details references - Detail model: define a reference field that points back to the master model.
Example from HelloKitto:
# model Party.yaml
ModelName: Party
...
DetailReferences:
Invitations: Invitation
# model Invitation.yaml
ModelName: Invitation
Fields:
...
Party: Reference(Party) not null
Fields:
Party_Id:- Kitto at a glance
- Getting started
- Setup
-
Basic concepts
- Basic Materials
- Controllers
- Panel-Based
- [List] (List)
- [Form] (Form)
- [GridPanel] (GridPanel)
- [ChartPanel] (ChartPanel)
- [Tool Controllers] (Tool)
- [Login] (Login)
- [Logout] (Logout)
- [ChangePassword] (ChangePassword)
- Features
- Examples
- Developer's guide
- Library reference
- Frequently Asked Questions
- Kitto tips & tricks and how-tos
- Other information
- Kitto Enterprise