public function execute($dbh) { if ($this->stmt != '') { SDO_DAS_Relational_DatabaseHelper::executeStatementTestForCollision($dbh, $this->stmt, $this->value_list); } return $this->spawned_actions; }
public function execute($dbh) { $pk_from = SDO_DAS_Relational_DataObjectHelper::getPrimaryKeyFromDataObject($this->object_model, $this->from_who); $pk_to = SDO_DAS_Relational_DataObjectHelper::getPrimaryKeyFromDataObject($this->object_model, $this->who_to); $type_name = SDO_DAS_Relational_DataObjectHelper::getApplicationType($this->from_who); $name_of_the_pk_column = $this->object_model->getPropertyRepresentingPrimaryKeyFromType($type_name); $stmt = "UPDATE {$type_name} SET {$this->property_name} = ? WHERE {$name_of_the_pk_column} = ?"; $value_list = array($pk_to, $pk_from); SDO_DAS_Relational_DatabaseHelper::executeStatementTestForCollision($dbh, $stmt, $value_list); }
public function execute($dbh) { $this->addFKToParentToSettings(); $this->stmt = $this->toSQL(); $this->buildValueList(); SDO_DAS_Relational_DatabaseHelper::executeStatementTestForCollision($dbh, $this->stmt, $this->value_list); $this->storeThisObjectsPrimaryKey($dbh); return $this->spawned_actions; }