/** * This method overrides parent's implementation by setting {@link isValid} to true if disabled. * @param boolean whether the component is enabled. */ public function setEnabled($value) { parent::setEnabled($value); if (!$value) { $this->isValid = true; } }