Re: Associations - How deep is too deep?
My structure is like this
Release
hasOne
Cover
hasMany
Track
hasMany
TrackVariant
A release has one cover (image), many tracks (tracks on an album), and
every track can be available in various media formats (wav, mp3, ogg,
etc). I don't think that's very complex, actually there is still much
room for more normalization. Ofcourse i could use the Track model for
variants by for example self-joining it, but i don't want to cripple
my DB structure just because of CakePHPs automagic shortcomings ;)
I'm now saving it manually, first Release and Cover, and then every
single Track with its TrackVariants - works fine :)
Regards
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home