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;
    }
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;
    }
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 ; }
Set an attribute value

@param string $attr  attribute
@param mixed  $value value

@return null
Set an attribute value