Closed AVGP closed 12 years ago
Thanks for report.
However, I can't reproduce it. In example.php
87475cb its same mechanics:
What version of OrientDB, php and OrientDB-PHP you're using?
I am running OrientDB 1.0rc9, PHP 5.4.0-2 (which might be a bit optimistic) and OrientDB-PHP in revision fe9029a917985572d1a93f7148e500231beda68f (Feb, 15th).
If I find the time later on, I'll try to reproduce the issue using the current git-snapshot of OrientDB-PHP with the original example.php and then test with my case again.
Ok. You can also use latest tag 'beta-0.4.5(1.0rc9-snapshot_r4983)'
Seems all fine.
Yep, I can't reproduce it with the latest tag, too. All fine.
I stumbled upon an IMHO weird behaviour when trying to use a OrientDBRecord object with recordUpdate. For some reason, using an existing OrientDBRecord object loaded from the database updating this record and saving it to the database using recordUpdate did not behave like I would have expected. Here is a result:
This will not update the name of the record with ID #5:1 to Jane. It will, anyway, increment the @version by one on the $record object to the same (incremented) value it returns - like it did update the record. However, if you do:
it will update the name property. This weird behaviour can currently circumvented like this:
which does update the record as intended.
Wouldn't the first way be easier and more obvious?