awcodes
awcodes
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
I think there also a getStateUsing() or something like that which could be used instead of default.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Default will show what you tell it to.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
No worries. Just hope the back and forth helped.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Glad you got something working.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Just make it work first, then make it better.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Should be ok then.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
But as long as your table isn’t ahowing too many records at one time the n+1 might not matter.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
I think you might have an n+1 issue though.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Hey, if it works. 😆
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
But yea, dynamic relationships just don’t make sense at the db level to me. But I could be completely wrong.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Honestly, that’s a relationship type I have almost no experience with because it make my brain explode, but possible.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Maybe hasManyThrough is what you are looking for.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Maybe you need an explicit join vs a relationship.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
This is why dynamic relationships don’t work.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Ok, but none of these show any actual column being defined for product_2 for instance, so laravel can’t infer the relationship.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Sorry, just sounds like something is off in the relationship to me.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
I could be entirely missing the use case though. Sorry.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
It’s just not how relationships work. The table column either exists or it doesn’t.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Ie, pricelists.price_2 may not exist for any given relationship.
47 replies
FFilament
Created by Roland Barkóczi on 10/17/2024 in #❓┊help
How to manage ManyToMany relation in TableBuilder and FormBuilder?
Ok. It seems like you’re looking for columns on a table that may or may not exist. The db doesn’t have the concept of dynamic column / field names unless you explicitly define them.
47 replies