protected static function initializeType() { static::setAttributeSetters(array('ignore-error' => 'setIgnoreError')); static::setAttributeSetters(array('keep-ratio' => 'setKeepRatio')); parent::initializeType(); }