You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having problem because, when I'm going to retrieve the entity from my DB, it comes with the second level with no data, only the first and last levels comes with all the data. Notice that columnTestM is blank. Is it a bug or am I missing something? It's persisting all three levels with data, the problem is only when I have to get it. As an example I put the column's content with it's own name
I put my MariaDB to log all queries to check what query was being generated and I noticed that, instead of generating a query that involves TestM, it tries to left join with TestB. Below the generated query:
SELECTt0.idAS id_3,
t0.column_testAS column_test_4,
t0.discr,
t1.column_test_aAS column_test_a_5,
t2.column_test_bAS column_test_b_6
FROM
test t0
LEFT JOIN
test_as t1 ONt0.id=t1.idLEFT JOIN
test_bs t2 ONt0.id=t2.idWHEREt0.id=1
The text was updated successfully, but these errors were encountered:
lsrzj
changed the title
Three level table class inheritance not loading second level data
Three level table class inheritance not loading second level data due to wrong query generation
Apr 30, 2020
mpdude
added a commit
to mpdude/doctrine2
that referenced
this issue
Jan 12, 2023
Your discriminator map does not contain the abstract entity from the middle of the hierarchy.
Follow #10389 to find out if that is a misconfiguration on your side and the issue being invalid; or it is a valid issue and #10388 at least showing test cases (not fix yet).
I have a inheritance of three levels using class table inheritance like this:
Class Test
Class TestM extends Test
Class TestA extends TestM
I'm having problem because, when I'm going to retrieve the entity from my DB, it comes with the second level with no data, only the first and last levels comes with all the data. Notice that columnTestM is blank. Is it a bug or am I missing something? It's persisting all three levels with data, the problem is only when I have to get it. As an example I put the column's content with it's own name
EDIT:
I put my MariaDB to log all queries to check what query was being generated and I noticed that, instead of generating a query that involves TestM, it tries to left join with TestB. Below the generated query:
The text was updated successfully, but these errors were encountered: