I have many or two relationships between Property and Feature. I need to extract the results from the property table, but only if both or more of the Features are related.
Those. Property No. 1 is associated with "Pool" and "Garden". Property No. 2 is only associated with the "Swimming Pool". Therefore, when I request properties that have both "Pool" and "Garden", he should return only property No. 1 to me.
I tried EVERY possible combinations, such as complex 'where ()', 'whereIn', 'join ... with', 'exists ()', etc., but cannot solve it. It returns me all the properties or not, I can’t remember everything that I tried. Please help, I spent 8 hours and killed me.
source
share