Doctrine cannot add or update child row error

2 Дек
2009

Doctrine worked mostly with InnoDB tables. And when you create foreign keys you must set onUpdate and onDelete events to “CASCADE” or “NO ACTION”, cause if you set them to NULL(the same if you don’t set them) they automatically set in “RESTRICT”. This may cause some problems.

The second mistake(that i did many times) it’s forgetting to rename FOREIGN KEY when rename tables or dependent cols. So don’t forget about names)

Комментарии:

  1. yuv    Декабрь 3rd, 2009 | 09:57   #   

    When did you start writing your blog in English? It’s cool, dude :)

Оставить комментарий

Вы должны войти, что бы оставить комментарий.

Наверх