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

Marcus

Well-known member
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?
 

Marcus

Well-known member
After looking though the official code, the best practice is to do that stuff in _postsave()
 
Top