public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'Elements');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopCmsContentElement::className();
     parent::init();
 }
Example #2
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getTradeOffers()
 {
     return $this->hasMany(ShopCmsContentElement::className(), ['parent_content_element_id' => 'id'])->orderBy(['priority' => SORT_ASC]);
 }