You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrey Razumovsky (JIRA)" <ji...@apache.org> on 2010/03/12 09:11:27 UTC

[jira] Updated: (CAY-1386) Removing from flattened relationship without "reverse" always fails

     [ https://issues.apache.org/jira/browse/CAY-1386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrey Razumovsky updated CAY-1386:
-----------------------------------

    Affects Version/s: Undefined future

> Removing from flattened relationship without "reverse" always fails
> -------------------------------------------------------------------
>
>                 Key: CAY-1386
>                 URL: https://issues.apache.org/jira/browse/CAY-1386
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 3.0RC2
>            Reporter: Andrey Razumovsky
>            Priority: Critical
>             Fix For: Undefined future
>
>
> Imagine there is many-many rel between tables A and B using join table C (no ObjEntity). There is flattened rel bArray from A to B with delete rule cascade (if that matters) but no reverse. 
> Adding to such rel goes perfect:
> INSERT INTO B
> INSERT INTO C
> But deleting B does 
> DELETE FROM B
> which obviously fails.
> Haven't digged into code much, but it seems arcDeleted() isn't invoked for B and therefore relationship isn't recognized as flattened.
> Since reverse rels aren't mandatory in Cayenne, this should work

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.