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
RuntimeError: java.lang.IllegalArgumentException: :db.error/not-an-attribute 17592186045435 is not an attribute.
get at diametric/DiametricListenableFuture.java:44
save at /Users/michalsiemionczyk/.rvm/gems/jruby-1.7.15/gems/diametric-0.1.3-java/lib/diametric/persistence/peer.rb:15
testD at /Users/michalsiemionczyk/Projects/yeti-backend/michals-test/test.rb:115
And that points to the
person = Person.new(name: "Natalia Jolie", id: user_id, badges: [badge, badge2])
line. The 17592186045435 number is a dbid of the first badge.
Hello,
I have following models:
and
My intention is to create Person with two Badges.
so when I create new person:
I'm being given:
And that points to the
line. The
17592186045435
number is a dbid of the first badge.I've tried another approach described in the tutorial in here https://github.com/relevance/diametric#association
and that throws the same error that points to the
person.update_attributes(badges: [badge, badge2])
line.When I tried the tutorial it throws the same error on
me.update_attributes(kids: [mario, luigi])
.Naturally I'm fine when adding associations with :cardinality => :many, but for my schema I need multiple references.
How to make it work?
The text was updated successfully, but these errors were encountered: