/** * Var method overriding years() to pre-select a year * * @return array */ public function years($year = NULL) { return parent::years(isset($this->credit_card) ? $this->credit_card->year : NULL); }