Esempio n. 1
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAttributesAttached()
 {
     return $this->hasOne(AttributesAttached::className(), ['attr_id' => 'id']);
 }
Esempio n. 2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getAttributesAttached()
 {
     return $this->hasMany(AttributesAttached::className(), ['object_type_id' => 'id']);
 }