Fixes #8. Fix for recursion when save object in a hook on MySQL.