public function updateAttributes($attrs)
    {
        if (array_key_exists(self::getPK(), $attrs)) {
            unset($attrs[self::getPK()]);
        }
        foreach ($attrs as $attr => $value) {
            $this->_data[$attr] = $value;
        }
        return $this->save();
    }
public function updateAttributes($attrs)
    {
        if (array_key_exists(self::getPK(), $attrs)) {
            unset($attrs[self::getPK()]);
        }
        foreach ($attrs as $attr => $value) {
            $this->_data[$attr] = $value;
        }
        return $this->save();
    }
public function updateAttributes ( $ attrs ) { if ( array_key_exists ( self :: getPK ( ) , $ attrs ) ) { unset ( $ attrs [ self :: getPK ( ) ] ) ; } foreach ( $ attrs as $ attr => $ value ) { $ this -> _data [ $ attr ] = $ value ; } return $ this -> save ( ) ; }
Update object attributes

@param mixed $attrs attributes

@return updated or not
Update object attributes