Answer the question
In order to leave comments, you need to log in
How to link tables in Doctrine 2?
Table structure:
Product: productId
ProductDescription: productId landCode
There is a LANG constant in the code with the current language
Tell me how to correctly link Product with ProductDescription so that Doctine uses LANG when lazy loading or when linking
Answer the question
In order to leave comments, you need to log in
You can use filters
docs.doctrine-project.org/projects/doctrine-orm/en... The
examples there are just about the language, by the way.
In the case of symfony, filters are described in the config
https://symfony.com/doc/current/reference/configur... ^F filters
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question