Skip to content

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

Open
@bokmann

Description

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions