SpoonX / sails-hook-wetland

A sails hook that enables the use of wetland ORM.
MIT License
9 stars 4 forks source link

Future proofing: Support for Replace blueprint #21

Open edouardmenayde opened 7 years ago

edouardmenayde commented 7 years ago

Sails V1 introduced replace blueprint : we must decide what to do about it.

20 does most of the work

RWOverdijk commented 7 years ago

We can just implement it I suppose? I'm pretty sure wetland even supports that by fetching the records and replacing the ArrayCollection. I think setting a property first calls deleteProperty, which marks all as removed, and then set, which marks new relations.