the code below, in an entity, causes too many sql queries. A complete Contrat query (which is not needed) get generated for each Dailyreport …
I do not know exactly if this called a lazy loader.
The issue is that it is used with no problems in other parts of the software. But for the report I have to make with a lot of daily reports, it causes nginx / php timeout. If I comment out the code, and get my contrats differently, my report works… but the software is broken in other functionnalities.
Thank you very, very, very much Graziel !! My supervisor tweaked your proposal to fit our needs. (code below) I will now be studying how these entities, _properties, and all of that work.