Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"cardinality: :many" Not reifying collections correctly in all cases #48

Open
bokmann opened this issue Jan 11, 2014 · 0 comments
Open

Comments

@bokmann
Copy link
Contributor

bokmann commented Jan 11, 2014

Lets say I have an entity, Terrarium, and another entity, Turtle

Terrarium has an attribute defined as:

  attribute :turtles, Ref, cardinality: :many

If I get the terrarium from the database with Terrarium.all, Terrarium.first, or Terrarium.where, all works exactly as expected (thank you!) but if I get the terrarium with find given its id, as in:

t = Terrarium.find 17592186045422

then the terrarium that is returned doesn't have its turtles properly reified... t.turtles will be a Java Set filled with instances of Java::DatomicQuery::EntityMap

I'll spend some time looking at this this weekend, but any hints would be welcome. I was surprised to see find defined in Entity while all the other finder-like things defined in Peer...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant