whether you choose a to-one or a many-to-many depends on whether you want one attachment or many ... if you have company.logo it's a to-one to attachment, with no inverse relationship. if it's gallery.photos then it's a many-to-many with no inverse relationship from attachment.
On Feb 16, 2010, at 4:13 PM, Johnny Miller wrote: > Hi, > > I've been using ERAttachment's image processor but on a new project I'm going > to try out using the entire framework i.e. all the automagic file handling > wonderment. > > A question on modeling the attachments. > > When you create the relationship between the entities' key and ERAttachment > is that an optional one-to-one relationship or is it an optional one-to-many > from your model to erattachment? > > Thanks in advance, > > Johnny > > > Johnny Miller > Kahalawai Media Corp > http://www.kahalawai.com > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com > > This email sent to [email protected] _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
