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

Create a decorator to represent a many to one relationship. #9

Open
lsoaresesilva opened this issue Jul 19, 2018 · 2 comments
Open

Comments

@lsoaresesilva
Copy link
Owner

lsoaresesilva commented Jul 19, 2018

Acceptance test

  1. A decorator must be used @manytoone({document:Class.prototype})
  2. A property _manyToOne must be dynamically created to represent an array of documents
  3. In the get method, they must verify if there is a _manyToOne property. If it exists, a GET on the Document must be fetch based on the id.
  4. In the add method, they must verify if there is a _manyToOne property. If it exists, must call add on the document to save or update it.
  5. Unit tests
@lsoaresesilva
Copy link
Owner Author

Points 1, 2, 3 are implemented.

@lsoaresesilva
Copy link
Owner Author

Point 4 implemented.

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