public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'Cart items');
     $this->modelShowAttribute = "name";
     $this->modelClassName = ShopBasket::className();
     parent::init();
 }
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopBasket()
 {
     return $this->hasOne(ShopBasket::className(), ['id' => 'shop_basket_id']);
 }
Beispiel #3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopBaskets()
 {
     return $this->hasMany(ShopBasket::className(), ['order_id' => 'id']);
 }