I have two tables in my project that relate, but I would like to make a query consult that would bring all the child entities that one field would be equal to the parent entity, being for all parent entities that satisfy a specific condition.
Could someone help me?
I want to take all the wheels that vehicle (parent class) is red, with vehicles being a table, wheels is another, and color (red) is a field. Fictitious example. In this case I want all the wheels only.