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