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



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1qc7txv
via IFTTT

Aucun commentaire:

Enregistrer un commentaire