/** * Override so we can force attribute to be set at 'state' since this * is the correct attributeName for anything using this derived element */ public function __construct($model, $attribute, $form = null, array $params = array()) { assert('$attribute == "null"'); parent::__construct($model, $attribute, $form, $params); $this->attribute = $this->resolveAttributeName(); }