I have a Model related with another Model.
I want to get all Records of first Model with the second one.
The second one must be null when a specific condition not satisfied but the first Model have to load normally
With above code the Models not loaded when the condition of second not satisfied.
I want to Load all enabled Products and only their Content that has lang=1 else Content set to Null
LEFT OUTER JOIN ON (... AND 'lang=1') WHERE enabled=1
LEFT OUTER JOIN ON (...) WHERE enabled=1 AND lang=1
Also I have a suspicious that the eager loads the content when $models->content called…
How achieve those things ?