Link should be able to take an entity object as the parameter and derive its id

Description

I should be able to create an link as follows:

1 2 3 4 entity = syn.get("syn123") folder = syn.get("syn345") l = Link(entity, parent = folder) syn.store(l)

_init_() of Link just needs to use utils.id_of(target) instead of setting target id directly

Environment

None

Status

Assignee

Thomas Yu

Reporter

Ziming Dong

Labels

None

Validator

Ziming Dong

Release Version History

None

Fix versions

Priority

Minor