Add update method as alias for set in object_property class
This commit is contained in:
@@ -100,6 +100,15 @@ class object_property
|
||||
$db->query($sql);
|
||||
}
|
||||
|
||||
/**
|
||||
* Alias for set()
|
||||
* @param mixed $value The value of the field in the database table
|
||||
*/
|
||||
public function update(mixed $value): void
|
||||
{
|
||||
$this->set($value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Nullify the value of the field in the database table
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user