Hi there,

wanted to ask for advices from you, Cake pals, about a problem I have to 
solve for my app.

I have these models:
- Event: an Event is what in real life e.g. a party, a social meeting, a 
wedding, etc.
- Moment: an Event hasMany Moments, e.g. in a wedding, when the bride 
arrives, when the rings are given, when they say "I accept", when they 
dance the bals, and so on. Specific moments of the Event.

Now, a Moment could be of different types, it could be an Image, it could 
be a Video, it could be a Panoramic (which is a 360° deegree picture), and 
so on.
Moments also are related with other models like: Moment hasMany Comment, 
Moment hasMany Tag

This way a Moment has the common feature of them but, then each type of 
Moment has it's own features.


May I create the relations like:

Event hasMany Moment (which is obvious)
and then link Moment on the fly with the specific type of moment model? 
(depending on the "type" column)

Thanks in advance for the ideas you could provide.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to