lundi 28 mars 2016

How to get value from column that was changed by trigger

Im having a problem. I have a before insert trigger (MySQL) on a table that changes the value of a column. But after doing the ->save() that the triggers its supposed to be done, if I do object->number (number is the column that was set on the trigger) I get nothing, while if I look on the database number was set.

I dont know why it happens if the autoincrement id is also set during the insert and that one I can get it.

Thanks for the help



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire