Problem - unknown column when using relationship in select
there's very simillar problem to mine but making it ->multiple() doesnt change anything.
https://www.answeroverflow.com/m/1188140922605666374
Column not found: 1054 Unknown column 'services' in 'SET', SQL: update
medical_packages
set description
= {"pl":"BlaBlaBla"}, is_enabled
= 1, services
= ["32","19","7","48"]
anyone have idea how can i fix that?Form: unknown column when using relationship - Filament
Hi,
I have a problem when I am trying to create or update a user for whom I have added a "Institution" relationship. What is weird is I don't get the same error with the skill relationship.
I have the following error :
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'institution' in 'field list'
update
users
SET institution
= [ "1" ...

Solution:Jump to solution
Hey you have to put
->disabled
before ->relationship
When using disabled() with multiple() and relationship(), ensure that disabled() is called before relationship(). This ensures that the dehydrated() call from within relationship() is not overridden by the call from disabled():@source...
2 Replies
i removed ->disabled and its working.
does the disabled method overwrite the relationship method so that the filament doesnt see it?
Solution
Hey you have to put
->disabled
before ->relationship
When using disabled() with multiple() and relationship(), ensure that disabled() is called before relationship(). This ensures that the dehydrated() call from within relationship() is not overridden by the call from disabled():@source