Having trouble setting up a belongs to many select
i have 3 tables,
quality_control_steps
, machine_centers
,and a join table machine_center_quality_control_step
and i can see a row in my table, but i cant seem to get the select working, it should allow me to select from all rows from the quality_control_steps
table:
but it shows me a list of the machine centers instead!
Solution:Jump to solution
but it shows me a list of the machine centers instead!because you asked for that
->relationship('machineCenters', ...
filament does not know your set up, neither do I.. I'm going to make the assumption that qualityControlSteps
are related to machineCenters
. in which case you would need to use
->relationship('machineCenters.qualityControlSteps', 'titleColumn')
...5 Replies
if i change the call to
relationship()
to use qualityControlSteps
then the select throws an exception:
because it is checking for that method on the quality control objectSolution
but it shows me a list of the machine centers instead!because you asked for that
->relationship('machineCenters', ...
filament does not know your set up, neither do I.. I'm going to make the assumption that qualityControlSteps
are related to machineCenters
. in which case you would need to use
->relationship('machineCenters.qualityControlSteps', 'titleColumn')
@Jordy thank you so much! That's exactly all that I needed,
machineCenters.qualityControlSteps
. Have a great day!Oh, only it tries to insert into the quality control steps table, and not the join table?

but the dropdown looks correct 🙂