onUpdate in MySQL means?
- by ajsie
i know that if you create a foreign key on a field (parent_id) in a child table that refer to a parent table's primary key (id), then if this parent table is deleted the child class will be deleted as well if you set onDelete to cascade when creating the foreign key in the child class.
but what happens if i set it to onUpdate = cascade?