That makes a lot of sense and I think I'm going to go the route you described.

On Feb 16, 2010, at 11:24 AM, David Holt wrote:

> Hi Johnny,
> 
> On 2010-02-16, at 1: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?
> 
> I've found that both work. In practice, I always use the to-one and if I need 
> a to-many I model it like this:
> 
> Person ->> photo -> ERAttachment
> 
> This way if you have any additional metadata to add about your attachment (in 
> this case photo) that is not included in the default ERAttachment metadata, 
> you're covered. 
> 
> If you don't foresee a need for additional metadata this also works:
> 
> Person ->> ERAttachment (photos)
> 
> HTH,
> 
> David
> 
> 
>> 
>> 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/programmingosx%40mac.com
>> 
>> This email sent to [email protected]
> 

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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to