清除关联查询结果缓存
//关联查询结果缓存
$customer=Customer::find()->where(['name'=>'lin'])->one();
$order=$customer->getOrders(); //用到Customer.php里的getOrders()函数
unset(??????),这里应该写什么? unset($customer->getOrders()) ;这种格式的??
//关联查询结果缓存
$customer=Customer::find()->where(['name'=>'lin'])->one();
$order=$customer->getOrders(); //用到Customer.php里的getOrders()函数
unset(??????),这里应该写什么? unset($customer->getOrders()) ;这种格式的??
2016-07-02
举报