⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Entity with 1..N uploaded images



voghDev
  • profile picture
  • Member

Posted 28 May 2014 - 11:32 AM

Hi,

 

i have an entity Museum, and each Museum has 1..N Resources that will be preferably images, which will be uploaded to my GC backend, and then i'll use the URL of the uploaded file as the value.

 

 

Museum: id, name

Resource: id, type, value, museum_id

     type=image

     value=url_of_image_after_upload

 

 

 

The question is, how can i model this using relations? I've checked the 1:1 tutorial and the N:M tutorial, but can't find a proper one for my case.

 

Could someone help with that? Thank you!!


voghDev
  • profile picture
  • Member

Posted 03 June 2014 - 11:00 AM

Next thing i'm doing is having a look at ImageCRUD.

 

I'll let you know how it goes.

 

Any additional help?