/** * @return \yii\db\ActiveQuery */ public function getPropertyValue() { return $this->hasOne(CsPropertyValues::className(), ['id' => 'property_value_id']); }
/** * @return \yii\db\ActiveQuery */ public function getChildrenPropertyModels() { return $this->hasMany(CsPropertyValues::className(), ['id' => 'property_value_id']); }
/** * @return \yii\db\ActiveQuery */ public function getPropertyValues() { return $this->hasMany(CsPropertyValues::className(), ['property_id' => 'id']); }