You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lithium MongoDB entities seem incapable of saving an array of MongoIds to existing records. They handle saving to new records just fine, but fail to update properly.
In that paste, Widgets is an empty model. Originally, line 6 was commented out and line 3 was active. That produces the first mongo output. For the second run, line 3 was commented out and line 6 was active.
The text was updated successfully, but these errors were encountered:
I actually discovered this recently and have a patch. Just submitted a pull request for it.
The main problem is that when lithium\util\Collection calls ->to('array') on sub-objects, it doesn't pass through the handlers that are used by the MongoDb Exporter that preserves MongoId and MongoDate objects.
Lithium MongoDB entities seem incapable of saving an array of MongoIds to existing records. They handle saving to new records just fine, but fail to update properly.
http://pastium.org/view/149cbf058975c2d55d2b36cfd7bf4c60
In that paste, Widgets is an empty model. Originally, line 6 was commented out and line 3 was active. That produces the first mongo output. For the second run, line 3 was commented out and line 6 was active.
The text was updated successfully, but these errors were encountered: