'ID', 'goods_warehouse_id' => 'Goods Warhouse ID', 'cat_id' => 'Cat ID', 'is_delete' => 'Is Delete', ]; } public function getGoods() { return $this->hasMany(Goods::className(), ['goods_warehouse_id' => 'goods_warehouse_id']) ->andWhere(['is_delete' => 0]); } }