/**
  * Provides backwards compatibility access for settings values to deprecated
  * properties
  */
 public function __set($name, $val)
 {
     switch ($name) {
         case 'type':
         case 'uploadsDir':
             return $this->Attachment->{$name} = $val;
             break;
         default:
             return parent::__set($name, $val);
     }
 }