SDO_DAS_Relational::applyChanges()
SDO_DAS_Relational::applyChanges - Applies the changes made to a data graph back to the database.
Syntax
SDO_DAS_Relational::applyChanges ()
Arguments
-
Description
Given a PDO database handle and the special root object of a data graph, examine the change summary in the datagraph and applies the changes to the database. The changes that it can apply can be creations of data objects, deletes of data objects, and modifications to properties of data objects.
Version
PHP ^
Return value
None. Note however that the datagraph that was passed is still intact and usable. Furthermore, if data objects were created and written back to a table with autogenerated primary keys, then those primary keys will now be set in the data objects. If the changes were successfully written, then the change summary associated with the datagraph will have been cleared, so that it is possible to now make further changes to the data graph and apply those changes in turn. In this way it is possible to work with the same data graph and apply changes repeatedly.