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)
yuv Декабрь 3rd, 2009 | 09:57 #
When did you start writing your blog in English? It’s cool, dude :)
Андрей Никишаев Декабрь 3rd, 2009 | 11:10 #
I thought it would be better for my page indexing by search engines.