Skip to content


DDC-2791: Constant value in JoinColumn #3540

doctrinebot opened this Issue · 0 comments

2 participants


Jira issue originally created by user pahhan:

My situation:
I have realty entities (flat, house, ...) they have hundreds parameters, wich title places in REFERENCE table. For example House has a few floor materials (stone, wood, etc.) and I want to get them. But each parameter type defined by type_id field in REFERENCE table, for example for floor material is's 115. My raw SQL:
LEFT JOIN objectdetail mf /material_floor/ ON mf.realty_id = AND mf.data_class = h.data_class AND mf.typeid = 115
LEFT JOIN Reference mfr ON mfr.cityid = h.city_id AND = mf.detailid

And its not possible to set type_id directly in join table

@beberlei beberlei was assigned by doctrinebot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.