[Flow] Remove problem
David Sporer
david.sporer at gmail.com
Tue May 14 11:13:40 CEST 2013
Hi Mathis,
try to set orphanRemoval to true.
@ORM\OneToMany(mappedBy="yourVar", orphanRemoval=true)
Best regards
David
2013/5/13 Mathis Hoffmann <mathis at hoffpost.de>
> 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
> ______________________________**_________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/flow<http://lists.typo3.org/cgi-bin/mailman/listinfo/flow>
>
--
If you're interested in my work you can follow me or my current project
@sporerd <https://twitter.com/sporerd> and
@PasscreatorDe<https://twitter.com/PasscreatorDe>
More information about the Flow
mailing list