cap-js / cds-dbs

Monorepo for SQL Database Services for CAP
https://cap.cloud.sap/docs/
Apache License 2.0
32 stars 9 forks source link

fix: rewrite assoc chains if intermediate assoc is not fk #715

Closed patricebender closed 1 week ago

patricebender commented 1 week ago

in one case a ref genre.parent.ID was mistaken for a foreign key access because ID is fk of parent. But because parent is not fk of genre, it is actually not an fk access. Hence, the reference actually needs to point to the correct join node.