[Flow] Remove problem

Mathis Hoffmann mathis at hoffpost.de
Mon May 13 17:06:22 CEST 2013


Hi,

I have two entities that both have it's own repository. The first one, 
called Payment, has a reference to the second one (ManyToOne). The 
second one, called PaymentCategory, has to subclasses, called 
IncomingPaymentCategory and OutgoingPaymentCategory and does not 
reference "Payment". The root-class itself (PaymentCategory) is 
abstract. I configured the inheritance type "joined" using the 
corresponding annotation on "PaymentCategory". Creating and updating 
incoming and outgoing payments works fine. But deleting them is rejected 
without any error - even if there are no payments referencing to the 
category that I try to delete. I even set the PaymentCategory-reference 
in "Payment" to "nullable=true" to avoid any problems on the 
database-side and deleting the categories manually works well.

Does anyone know how to get deleting the entities work in Flow?

Yours
Mathis Hoffmann


More information about the Flow mailing list