I'm using CakeDC Users plugin and I want to save a "Docente" after saving a "User". "User" has a one to one relationship with "Docente".
I decided to get the id of the last "User" inserted and then saving "Docente". It worked, but I'm worried that when there are multiple users being inserted at the same time then there is going be problems at saving the proper 'user_id' for the "Docente" table.
So I was asking if there is a method to overcome problems in the "Docente" table regarding the user_id foreign key.
I don't want to mess with the plugin funcionality too much since there are some parts I can hardly understand.
Thanks in advance.