Fatal error: Uncaught exception 'Doctrine_Export_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`krakow05_miasto2`.`#sql-f6a_9ed9f7`, CONSTRAINT `mp_page_photo_article_id_mp_article_id` FOREIGN KEY (`article_id`) REFERENCES `mp_article` (`id`)). Failing Query: "ALTER TABLE mp_page_photo ADD CONSTRAINT mp_page_photo_article_id_mp_article_id FOREIGN KEY (article_id) REFERENCES mp_article(id)". Failing Query: ALTER TABLE mp_page_photo ADD CONSTRAINT mp_page_photo_article_id_mp_article_id FOREIGN KEY (article_id) REFERENCES mp_article(id)' in /home/krakow05/domains/miastopociech.pl/libs/Doctrine/Export.php:1219 Stack trace: #0 /home/krakow05/domains/miastopociech.pl/libs/Doctrine/Export.php(1100): Doctrine_Export->exportClasses(Array) #1 /home/krakow05/domains/miastopociech.pl/libs/Doctrine/Core.php(894): Doctrine_Export->exportSchema('/home/krakow05/...') #2 /home/krakow05/domains/miastopociech.pl/inc/class_db_doctrine.php(35): in /home/krakow05/domains/miastopociech.pl/libs/Doctrine/Export.php on line 1219