mongoose-materialized icon indicating copy to clipboard operation
mongoose-materialized copied to clipboard

.save does not update all path

Open bora89 opened this issue 10 years ago • 2 comments
trafficstars

I save model normaly with .save() method as in docs specified. But if I apply, lets say, a new parent - not all children paths are rebuilt. I use 0.1.8 version of your plugin. What could be wrong?

bora89 avatar Apr 27 '15 09:04 bora89

Can you show Me an example?

janez89 avatar Apr 27 '15 10:04 janez89

Steps to reproduce:

  • Try to build a following hierarchy:

Car --Audi -----A4 -----A6 --BMW -----M5 -----X6

  • Add global item, which will be the parent for "Car" item: "Transport"
  • Have a look at the path in the DB, they should be broken.
  • For building you can use only ".save" method

bora89 avatar Apr 28 '15 10:04 bora89