Initiating a To-many entity
Initiating a To-many entity
- Subject: Initiating a To-many entity
- From: Sean Kline <email@hidden>
- Date: Thu, 16 Jul 2009 10:28:49 -0400
Hello,
Imagine the following example:
Entity Attributes Relationships
-------- ---------- ---------------
WeeklyMenu date menuItems (To-many Destination:
MenuItems)
MenuItems dish week (Destination: WeeklyMenu)
chef
cost
Category chef
dish
I pre-populate Category from a .plist.
Chef Dish
------ -------
LunchChef BLT
LunchChef Soup
DinnerChef Soup
DinnerChef Salad
DinnerChef Steak
When a new date is created, I want MenuItems to automatically have records
corresponding to all of the categories. How would you do this? The example
is a bit contrived but is analogous to my actual application. The idea is
to have the same categories every week with varying prices. Feel free to
suggest a different model if mine is not appropriate. I am able to construct
an interface which allows for new dates and displays the pre-populated
categories, but I am having difficulty figuring out how to create the
MenuItems automatically.
Thanks,
S
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden