Ejemplo n.º 1
0
 public function getCategory()
 {
     return $this->hasOne(FCategory::className(), ['id' => 'value']);
 }
Ejemplo n.º 2
0
 public function getParentCategory()
 {
     return $this->hasOne(FCategory::className(), ['id' => 'id_category']);
 }
Ejemplo n.º 3
0
 public function getParent()
 {
     return $this->hasOne(FCategory::className(), ['id' => 'parent_id']);
 }
Ejemplo n.º 4
0
 public function getRelatedCategoryDetail()
 {
     return $this->hasOne(FCategory::className(), ['id' => 'id_related_category']);
 }