Re: Problem with order when delete/inserting cascading objects

2023-04-14 Thread Markus Reich
Thx Nikita, this solved my problem!!! Am Fr., 14. Apr. 2023 um 11:08 Uhr schrieb Nikita Timofeev < ntimof...@objectstyle.com>: > Hi, > > In general this type of relationship should be just fine. > Could you please check if your DB relationships have the 'to Dep Pk' > flag set properly. > In your

Re: Problem with order when delete/inserting cascading objects

2023-04-14 Thread Nikita Timofeev
Hi, In general this type of relationship should be just fine. Could you please check if your DB relationships have the 'to Dep Pk' flag set properly. In your case it should be set on meals and meals_items parts and not set on the meals_meals_items part of the relationship. It's a pretty common so

Problem with order when delete/inserting cascading objects

2023-04-11 Thread Markus Reich
Hi, I'm using Cayenne 4.2.RC2 and have a special problem when deleting or creating objects that have a relation to others. To solve the problem I have to delete the FK relation on database. I'm using MariaDB 10.9. with the JDBC driver org.mariadb.jdbc 3.1.3. My model meals meals_meals_items meal