public function set($attr, $value)
    {
        $pk = self::getPK();
        // can't change the primary key of an existing record
        if (!$this->_new_rec && $attr == $pk) {
            return;
        }
        $this->_data[$attr] = $value;
    }