示例#1
0
 public function init()
 {
     $this->name = \skeeks\cms\shop\Module::t('app', 'Orders');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopOrder::className();
     parent::init();
 }
 public function init()
 {
     $this->name = \Yii::t('skeeks/shop/app', 'Orders');
     $this->modelShowAttribute = "id";
     $this->modelClassName = ShopOrder::className();
     parent::init();
 }
示例#3
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopOrders()
 {
     return $this->hasMany(ShopOrder::className(), ['person_type_id' => 'id']);
 }
示例#4
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopOrder()
 {
     return $this->hasOne(ShopOrder::className(), ['id' => 'shop_order_id']);
 }
示例#5
0
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getShopOrders()
 {
     return $this->hasMany(ShopOrder::className(), ['status_code' => 'code']);
 }