Closed Kyr closed 8 years ago
I am having the problem described by @Kyr . This is needed.
I really can't estimate / review the changes without the original two-space coding style kept. Please convert your code to the original repository style and rebase your commits with the current master. Thanks!
My apologies @bredikhin , I'm restore original code-style. Maybe adding .editorconfig could avoid such confusing?
Sorry, I still see some tabs in the code. Also, the PR can't be merged because of some conflicts, and the code itself needs more work. Please, resolve the conflicts and open a new PR against the branch called feature/options
.
Explanation:
Given we have
model::sails.model
that, for some reason, have lifecycle callback:When trying to populate fixtures into
Model
throws exception.Solution:
Give ability to preserve exists data via passing parameter to
.populate
. Aside: wrap passed options to object, with backward capability.