Oh crap, got it. Thank you, Jeremy. wtorek, 7 czerwca 2022 o 17:11:22 UTC+2 Jeremy Evans napisał(a):
> On Tue, Jun 7, 2022 at 8:05 AM Michał Gilewski <[email protected]> > wrote: > >> Hi, I'm trying to create a simple plugin that should set the value for >> the column for the Sequel::Model. I noticed that when I'm trying to assign >> records using add_ method all the hooks are omitted for the join model. >> It's intentional? There is any way to catch any hook for that record? > > > There is no join model in Sequel many_to_many associations. When using > many_to_many, add_* just inserts into the join table. If you want to use a > join model, add a one_to_many association to a model for the join table, > and then add_* for that association, which will call the hooks for that > model. > > Thanks, > Jeremy > -- <https://www.start-up.house> www.start-up.house <https://www.start-up.house> <https://linkedin.com/company/start-up-development-house> Follow us on Linkedin <https://linkedin.com/company/start-up-development-house> <https://facebook.com/startup.development.house> Follow us on facebook <https://facebook.com/startup.development.house> Startup Development House Sp. z o.o.,Al. Niepodległości 124/23 02-577 Warsaw, Poland, registered in the Register of Entrepreneurs (maintained at the District Court for the Capital City of Warsaw, XIII Business Department) under the National Court Register no. 0000624654. Tax Identification Number (NIP): PL5213739631, National Economy Register Number (REGON): 364787848, share capital: 30 000 PLN -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/6db041be-4576-4640-b0dc-97bad92e8da3n%40googlegroups.com.
