Displaying 1 result from an estimated 1 matches for "cookoff".
Did you mean:
hookoff
2006 Feb 19
0
creating a model that has other models as elements
Say I have the following three tables:
dogs
-------
id (PK)
name
cats
------
id (PK)
name
recipies
-----------
id (PK)
recipie_text
I''ve made a model for each of them: Dog, Cat and Recipie.
Now I want to create a model, Cookoff, that will contain arrays of
Dog, Cat and Recipie objects. There is no associated database table
for Cookoff because it''s merely a container for a specific request,
not an actual data item.
My users will submit a form with the following data:
dog_id: 10
cat_id: 12
A Cookoff instance wil...