In MySQL 5.6.7, MySQL changed the behavior of foreign key constraints. You can read about it here: http://stackoverflow.com/questions/17015844/mysql-5-6-foreign-key-constraint-error-didnt-occur-in-5-5
This means that you may need to update your migration just a little bit in order for it to work: Doctrine hasn't (yet) updated their code to be smart enough to do this for us in new MySQL versions. The attached migration file should replace the one generated in this chapter: https://knpuniversity.com/screencast/doctrine-relations/join-column-relation-fixtures. It explicitly drops the foreign key column, changes the column, then re-adds it.
Do that, and everything should be fine :).
Cheers!
Thank you.