Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MongoCollection: Save does not only write attributes #762
When creating a new MongoCollection object, setting a property and then saving it, all the private fields, and not only the attributes, are saved as well.
Only _id and name gets set in the document.
referenced this issue
May 2, 2017
I have the same issue with PHP7.1, I didn't have this issue on PHP7.0
Phalcon + PHP
I even installed Mongo 2.6 that you can get from base Ubuntu repository, and I get the same issue:
I can confirm downgrading to php7.0 resolves the issue:
Also im not sure if i even understand this getReservedAttributes correctly, shouldn't it have ALL protected propertis from
Yea, exactly - phalcon/zephir#1548 On php 5 and 7.0 get_object_vars, even called in class scope returns only public properties anyway.
MongoDB extension version => 1.3.4