In my model I have a "afterCreate()". Within "afterCreate()" I would like to execute a simple custom query that will insert a record into another table with the foreign key of the record just created.
If you could provide an example of how to do this with a custom query (ie no association to model) and also using Phalcon to save (ie there is an association).
Thank you in advance for the help.