Hello;
When I'm trying to use the primary_key of a non integer field in an after_insert callback the value returned is 0.
This also affects the updates in a n-n-relationship (giving errors most of the time).
Is there any way to overcome this problem? (if possible I wouldn't like to create an autoincrement pk)
Where should I insert my code to modify this pk value so that it would work in a n-n-relationship?
I noted that the model gets the pk value from db->insert_id() and that seems to be the problem for this example.
Thank you
Norberto