rinvex / laravel-repositories

⚠️ [ABANDONED] Rinvex Repository is a simple, intuitive, and smart implementation of Active Repository with extremely flexible & granular caching system for Laravel, used to abstract the data layer, making applications more flexible to maintain.
https://rinvex.com
MIT License
666 stars 115 forks source link

Query data that just now updated data is different from database #213

Open tcyfree opened 4 years ago

tcyfree commented 4 years ago

$skuInventoryDetail = $skuInventoryDetailRepository->where('sku_inside_code_uses_id', $skuInsideCodeUses->id)->findFirst();

\Log::info($skuInventoryDetail->stockout_time); // data is null

\Log::info(SkuInventoryDetail::where('sku_inside_code_uses_id', $skuInsideCodeUses->id)->first()); // data is right