'ID', 'goods_id' => 'Goods ID', 'card_id' => 'Card ID', 'num' => 'Num', 'is_delete' => 'Is Delete', ]; } public function getGoodsCards() { return $this->hasOne(GoodsCards::className(), ['id' => 'card_id']); } }