DDC-2791: Constant value in JoinColumn #3491

Open
opened 2026-01-22 14:20:50 +01:00 by admin · 0 comments
Owner

Originally created by @doctrinebot on GitHub (Nov 13, 2013).

Originally assigned to: @beberlei on GitHub.

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:
SELECT h.id,... FROM HOUSE h
LEFT JOIN object_detail mf /material_floor/ ON mf.realty_id = h.id AND mf.data_class = h.data_class AND mf.type_id = 115
LEFT JOIN Reference mfr ON mfr.city_id = h.city_id AND mfr.id = mf.detail_id

And its not possible to set type_id directly in join table

Originally created by @doctrinebot on GitHub (Nov 13, 2013). Originally assigned to: @beberlei on GitHub. 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: SELECT h.id,... FROM HOUSE h LEFT JOIN object_detail mf /_material_floor_/ ON mf.realty_id = h.id AND mf.data_class = h.data_class AND mf.type_id = 115 LEFT JOIN Reference mfr ON mfr.city_id = h.city_id AND mfr.id = mf.detail_id And its not possible to set type_id directly in join table
admin added the New Feature label 2026-01-22 14:20:50 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#3491