You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to setup a relation between a Company, and the Media that is associated with the Company, and I'm having trouble finding how to store the parent id on the join table (and not each individual child class in the join table)
Essentially, I need the ability to say, company.photos.create and have it create a new Photo (with info in the Media and Photo tables), but store the Photo's media.id in the CompanyMedia table.
Has anyone made this happen successfully yet?
The text was updated successfully, but these errors were encountered:
I'm trying to setup a relation between a Company, and the Media that is associated with the Company, and I'm having trouble finding how to store the parent id on the join table (and not each individual child class in the join table)
Right now, I have
What I really want:
Essentially, I need the ability to say,
company.photos.create
and have it create a new Photo (with info in the Media and Photo tables), but store the Photo's media.id in the CompanyMedia table.Has anyone made this happen successfully yet?
The text was updated successfully, but these errors were encountered: