/** * @return \yii\db\ActiveQuery */ public function getChildren() { return $this->hasOne(DummyModel::className(), ['id' => 'parent_id']); }