© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
morty

Regression in v3.2.67 - `foreach() argument must be of type array|object, null given`

I really don't want to create a reproduction repo for a GitHub issue. Is anyone else experiencing this when attaching a related record inside a relation manager using a
belongsToMany
belongsToMany
relationship?
Solution
nevermind, I posted in the PR: https://github.com/filamentphp/filament/pull/12308
GitHub
Fixes bug when attaching a belongsToMany relation that has an order...
Description
When trying to attach a BelongsToMany relation through the RelationManager where the belongsToMany relation has an orderByPivot method it will give an error in the SQL query.
This used ...
Fixes bug when attaching a belongsToMany relation that has an order...
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

foreach() argument must be of type array|object, null given
FilamentFFilament / ❓┊help
2y ago
Argument #2 ($label) must be of type string, array given
FilamentFFilament / ❓┊help
3y ago
get_class(): Argument #1 ($object) must be of type object, null given Filament::auth()
FilamentFFilament / ❓┊help
2y ago
Select::isOptionDisabled(): Argument #2 ($label) must be of type string, null given,
FilamentFFilament / ❓┊help
3y ago