robuust / craft-reverserelations

Reverse Relations for Craft
MIT License
12 stars 15 forks source link

just save relations that were added instead of re-saving all relations #31

Closed enzorrr closed 2 years ago

enzorrr commented 2 years ago

This PR addresses an issue, where holding a lot of relations in a reverse-relation-field leads to long saving times as all relations are re-saved. Instead, we just save the ones that were added. (like it's already done with the deleted relations) All common relations in $sources and $oldSources will not be touched.

boboldehampsink commented 2 years ago

@enzorrr thanks, looks good! Would you mind adding an entry to the changelog and bumping the version in composer.json?

boboldehampsink commented 2 years ago

I have a habit of thanking people in the changelog, don't forget to mention yourself!

enzorrr commented 2 years ago

no worries, its ok like that ;)