Skip to content

MarriageParticipant::set

James Cobban edited this page Dec 13, 2019 · 3 revisions

$marriageParticipant->set($fieldname, $value)

Up: class MarriageParticipant

This method changes the value of a specified field and returns the former value of the field. It has two parameters:

parameter description
$field The field name is case insensitive and may be a synonym defined by the derived class to facilitate readability. Late static binding is used so this method takes advantage of field name definitions in the derived class. The field name may also be a temporary field defined by assigning a value to it in this method. This method creates a trace entry if the field name does not correspond to any field in the record and debugging is enabled.
$value The new value to assign to the field.

This is overloaded as follows:

field name action
'surnamesoundex' Cannot be altered, its value is set by the SQL server when the field 'surname' is altered.
'byear' Cannot be altered, its value is set by the class when the field 'age' is altered.

Next: $marriageParticipant->save()

Clone this wiki locally