NideShop:基于Node.js+MySQL开发的开源微信小程序商城(微信小程序)
-
Updated
Jan 20, 2020 - JavaScript
Hi,
I was trying to get the associated model from the cart item with $cartItem->model. However, it returns null.
I have seen that in CartItem class there is a call to the associatedModel function within __get method:
/**
* Get an attribute from the cart item or get the associated model.
*
* @param string $attribute
*
* @return mixed
*/
pub
Add a description, image, and links to the shopping topic page so that developers can more easily learn about it.
To associate your repository with the shopping topic, visit your repo's landing page and select "manage topics."