Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

withCasts does not work #117

Open
felixweiid opened this issue Aug 25, 2023 · 2 comments
Open

withCasts does not work #117

felixweiid opened this issue Aug 25, 2023 · 2 comments

Comments

@felixweiid
Copy link

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
Copy link
Contributor

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
Copy link
Member

Related to #122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants