Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Cannot create a circular dependency #15

Open
lsoaresesilva opened this issue Aug 23, 2018 · 0 comments
Open

Cannot create a circular dependency #15

lsoaresesilva opened this issue Aug 23, 2018 · 0 comments

Comments

@lsoaresesilva
Copy link
Owner

class Person extends Entity{
doAnything(){
Animal.getAll() // BUG! when oneToOne is created, it cannot read Person.prototype, because it does not exists, yet. Solution is to split this call outside Person.
}
}

class Animal extends Entity{
@OnetoOne({document:Person.prototype})
}

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

No branches or pull requests

1 participant