type !== null) { $this->andWhere(['type' => $this->type]); } return parent::prepare($builder); } }