Closed
Description
I bumped into this while writing a wrapper function for an ODM-Bundle I am writing for Laravel (PHP.) .
It will soon be on Github, once I declare it stable enough for other users to work with it. (Maybe to day or tomorrow).
The save() function from the ODM is checking if the document has changed before actually saving it.
The problem arises when a document is created from an array. In the method it sets Changed to false.
I believe this is a wrong behavior, since it is changed from nothing to a document with data which hasn't been saved to the collection.
The change is a simple replace of false to true in Document.php Line76.