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 recently managed to create a join table for image attachments on news items in which I failed to define a primary key like the below:
primary_key [:news_item_id, :asset_id]
The first sign of my mistake was rom-factory raising the following error when calling the relation's factory:
ArgumentError:
ROM::Relation::Combined#by_pk arity is 1 (0 args given)
I was able to find my mistake with help from @timriley, but I wonder if we could add mention to that error to check one's primary key as a pointer to others?
I recently managed to create a join table for image attachments on news items in which I failed to define a primary key like the below:
primary_key [:news_item_id, :asset_id]
The first sign of my mistake was rom-factory raising the following error when calling the relation's factory:
I was able to find my mistake with help from @timriley, but I wonder if we could add mention to that error to check one's primary key as a pointer to others?
The top of the stacktrace was:
The text was updated successfully, but these errors were encountered: