public function joinWith($with) { if ($with === 'texts') { $this->andWhere(['with_texts' => 1]); } return parent::joinWith($with); }