M
M
Maxim2019-06-25 15:15:52
Doctrine ORM
Maxim, 2019-06-25 15:15:52

How to refer to a table if an entity has not been created for it?

I make a query through createQueryBuilder
there is a related table, how can I join it, if you just specify its name, then it gives errors

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Decadal, 2019-06-25
@Decadal

If you need Doctrine mapping as a result of a query, then you will have to create an entity for the associated table. And if you want to get just an array of data, then you can ask the EntityManager for a connection and execute a plain SQL query. Within DQL, it's either all or nothing. Partially will not work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question