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've seen that fizz handles compound keys, is there any examples of how gobuffalo eager loads through those keys?
For example, I have the following:
Coordinates (lat/lon/{id/order}) - {id/order} being the composite key
-(53.3, -119.6, 0, "aaa", 1)
-(54.3, -120.6, 0, "aaa", 2)
-(52.3, -119.6, 0, "aaa", 3)
-(43.3, -119.6, 0, "aab", 1)
-(42.3, -149.6, 0, "aab", 2)
-(24.3, -119.6, 0, "aab", 3)
Buildings (name/coordinates)
-("weirdly large building", "aaa")
-("freakishly large building", "aab")
I assume when creating coordinates, I have to make the first one and then manually copy the UUID to the subsequent ones, and manually place that ID into buildings?
How does "belongs_to" and "has_one" work with a composite primary key like this?
Will eager loading on buildings work in pulling the coordinates?
The text was updated successfully, but these errors were encountered:
Hello,
I've seen that fizz handles compound keys, is there any examples of how gobuffalo eager loads through those keys?
For example, I have the following:
Coordinates (lat/lon/{id/order}) - {id/order} being the composite key
-(53.3, -119.6, 0, "aaa", 1)
-(54.3, -120.6, 0, "aaa", 2)
-(52.3, -119.6, 0, "aaa", 3)
-(43.3, -119.6, 0, "aab", 1)
-(42.3, -149.6, 0, "aab", 2)
-(24.3, -119.6, 0, "aab", 3)
Buildings (name/coordinates)
-("weirdly large building", "aaa")
-("freakishly large building", "aab")
I assume when creating coordinates, I have to make the first one and then manually copy the UUID to the subsequent ones, and manually place that ID into buildings?
How does "belongs_to" and "has_one" work with a composite primary key like this?
Will eager loading on buildings work in pulling the coordinates?
The text was updated successfully, but these errors were encountered: