Jump to content


Entity with 1..N uploaded images

1:N upload images crud

  • Please log in to reply
1 reply to this topic

#1 voghDev

voghDev

    Member

  • Members
  • PipPip
  • 20 posts

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!!



#2 voghDev

voghDev

    Member

  • Members
  • PipPip
  • 20 posts

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?







Also tagged with one or more of these keywords: 1:N, upload, images, crud

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users