P
P
petrun2017-01-23 18:46:04
symfony
petrun, 2017-01-23 18:46:04

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

1 answer(s)
D
Dmitry MiksIr, 2017-01-24
@petrun

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 question

Ask a Question

731 491 924 answers to any question