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