[Flow] Problem deleting model that extends Party
David Sporer
david.sporer at gmail.com
Thu Apr 25 08:22:47 CEST 2013
Hey guys,
sorry... my fault.
There was another relation where no cascade remove was specified and this
caused the error.
Best regards
David
-----Ursprüngliche Nachricht-----
Von: flow-bounces at lists.typo3.org [mailto:flow-bounces at lists.typo3.org] Im
Auftrag von David Sporer
Gesendet: Samstag, 20. April 2013 19:17
An: flow at lists.typo3.org
Betreff: [Flow] Problem deleting model that extends Party
Hi,
I have a model called CustomerUser that
extends \TYPO3\Party\Domain\Model\Person Now when I try to delete an
instance of CustomerUser I always get the following error:
Uncaught exception #23000 in line 754 of
C:\xampp\htdocs\notifier_flow3\Packages\Framework\Doctrine.DBAL\Classes\Conn
ection.php:
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or
update a parent row: a foreign key constraint fails
(`notifier_core_flow3`.`sporerwebservices_passbookpasses_domain_model_custom
eruse_ca150`,
CONSTRAINT `FK_1763C8588F0B9145` FOREIGN KEY (`customeruser`) REFERENCES
`sporerwebservices_passbookpas)
Any hints how to solve this?
I tried to delete the referenced account first. What works is if I set the
cascading on database level but afterwards my doctrine migrations/updates
don't work anymore.
Best regards
David
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list