/** * @return null|ShopProduct */ public function getProduct() { return ShopProduct::findOne(['id' => $this->product_id]); }