public function Messaging_Object::__set in Messaging 6.4
Magic function. Set protected properties
We have a problem when creating records. Serial fields are unset() by drupal_write_record For these fields, though they're public, when there's a __set function it is called too
File
- includes/
messaging_object.class.inc, line 255 - Drupal Messaging Framework - Base classes
Class
- Messaging_Object
- Messaging persistent object
Code
public function __set($name, $value) {
if ($name == $this
->db_key()) {
$this->{$name} = $value;
}
else {
parent::__set($name, $value);
}
}