Closed szechyjs closed 12 years ago
Can you send a dump of your database? I can't reproduce it, and would need to look into the database.
This is actually a bug in Doctrine2 - see http://www.doctrine-project.org/jira/browse/DDC-1586
One fix is to change the foreign key inside the ProjectPart table to reference the correct target. It is pretty easy using phpMyadmin.
SQL Statement to fix this manually (backup your DB first):
ALTER TABLE ProjectPart
DROP FOREIGN KEY FK_B0B19336166D1F9C
,
ADD FOREIGN KEY ( project_id
) REFERENCES partkeepr
.Project
(
id
) ON DELETE RESTRICT ON UPDATE RESTRICT ;
Thanks! That resolved the issue.
On Sun, May 27, 2012 at 5:48 AM, timoahummel < reply@reply.github.com
wrote:
SQL Statement to fix this manually (backup your DB first):
ALTER TABLE
ProjectPart
DROP FOREIGN KEYFK_B0B19336166D1F9C
, ADD FOREIGN KEY (project_id
) REFERENCESpartkeepr
.Project
(id
) ON DELETE RESTRICT ON UPDATE RESTRICT ;
Reply to this email directly or view it on GitHub: https://github.com/partkeepr/PartKeepr/issues/200#issuecomment-5952486
This is actually a duplicate of #129 - I'll close this, as the other issue contains more information.
This may be related to my database being migrated from a build from September. I have created a new project, it saves fine provided I don't have any parts added, however once I add a part and click save I get the following error. The parts I'm adding existed in my September version of the database, the project is newly created.