/** * 自我表关联 */ public function getMySelf() { return $this->hasOne(CascadeData::className(), ['id' => 'parent_id']); }