64], [['parent'], 'exist', 'skipOnError' => true, 'targetClass' => AuthItem::className(), 'targetAttribute' => ['parent' => 'name']], [['child'], 'exist', 'skipOnError' => true, 'targetClass' => AuthItem::className(), 'targetAttribute' => ['child' => 'name']], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'parent' => 'Parent', 'child' => 'Child', ]; } /** * @return \yii\db\ActiveQuery */ public function getParent0() { return $this->hasOne(AuthItem::className(), ['name' => 'parent']); } /** * @return \yii\db\ActiveQuery */ public function getChild0() { return $this->hasOne(AuthItem::className(), ['name' => 'child']); } }