Beispiel #1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAttrval()
 {
     return $this->hasOne(AttributeValue::className(), ['attrval_id' => 'attrval_id']);
 }
Beispiel #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAttributeValues()
 {
     return $this->hasMany(AttributeValue::className(), ['attr_id' => 'attr_id']);
 }