Exemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function getCategoryAttributes()
 {
     return $this->hasMany(CatalogAttributes::className(), array('category_id' => 'id'));
 }
Exemplo n.º 2
0
 public function getAllCategoryAttributes()
 {
     return $this->hasMany(CatalogAttributes::className(), ['category_id' => 'category_id']);
 }
Exemplo n.º 3
0
 public function getCategoryAttribute()
 {
     return $this->hasOne(CatalogAttributes::className(), array('id' => 'attribute_id'));
 }