-
Notifications
You must be signed in to change notification settings - Fork 920
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
[Bug] Form Operation - cannot add raw fields of a morph as hidden fields #5297
Comments
Hey @realtebo it's usually better to post the full error stack trace to help us to trace/reproduce the error. From that SS I can't tell where/why the error is triggered. I may throw my guess here, that if the problem is some entity conflict, you can try Cheers |
[2023-08-25 11:25:21] local.ERROR: Call to undefined method App\Models\CoinMovement::coinable_id() {"userId":195,"exception":"[object] (BadMethodCallException(code: 0): Call to undefined method App\Models\CoinMovement::coinable_id() at C:\laragon\www\project-coin\vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php:67) |
Bug report
What I did
Created a "form operation"
the model as a
coinable
MorphTo
relation.so the table has
coinable_id
andcoinable_type
this because the operation is loading into crud currentEntry a record I want to manipulate,
I want to add as hidden fileds these 2 fields
What I expected to happen
I expeteced 2 hidden fields; coinable_id and coinable_type
What happened
What I've already tried to fix it
nothing for now
Is it a bug in the latest version of Backpack?
After I run
composer update backpack/crud
the bug... is it still there?yes
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:The text was updated successfully, but these errors were encountered: