tighten / parental

Use single table inheritance in your Laravel app
MIT License
1.36k stars 98 forks source link

withCasts does not work #117

Open felixweiid opened 1 year ago

felixweiid commented 1 year ago

Hi, I have parent model 'Transaction' and child model PurchaseOrder.

I have cast class 'ThousandSeparator'

When I retrieve data using Eloquent $purchaseOrder = PurchaseOrder::withCasts(['total' => \App\Casts\ThousandSeparator::class]);

It simply does not work. However when I use normal model, it works.

Any ideas how to solve it?

gcavanunez commented 11 months ago

Hi, @felixweiid thanks for reaching out with your issue. It would be helpful if you could create a minimal reproduction repository to better checkout the behavior.

driftingly commented 9 months ago

Related to #122