Skip to content

Single object referenced in multiple places doesn't load as single instance #206

@E-Aho

Description

@E-Aho

Raising issue to track the issue noticed in #195.

We currently have this xfail test to show the issue.

As noted by Adrin, currently, if we had code like:

a = A()
f = a.f
g = a.g
c = C(f, g)

And we tried to persist C, f and g would be bound to different instances of A after loading.

There has been some discussion in #195 already about ways to solve this, and it would likely require a way to track the LoadState during object load.

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