• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 best practice: how to add record in other table within postsave()?

Marcus

Well-known member
#1
I have a table "soup-recipe". In the entity postsave() I want to search for all vegetables in the new added soup and write these vegetables to table "ingredients".

What is the best practice? Do I do this in postsave()? Or is there some kind of "setter" method?