atk4 / data

Data Access PHP Framework for SQL & high-latency databases
https://atk4-data.readthedocs.io
MIT License
273 stars 46 forks source link

Array persistence traversal is not consistent vs. SQL traversal #997

Open mvorisek opened 2 years ago

mvorisek commented 2 years ago

let's have 2 models A and B and no condition is specific on any model

A has many B

when B record has an foreign key not available in A, SQL persistence excludes these records when traversing from A, but Array persistence does not

HasOneSql also introduce extra traversal condition