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 have an abstract class with 1 field. An inherited class adds no extra fields.
Doing a repository find of the inherited class generates wrong SQL.
Current behavior
Throws an exception (Uncaught PDOException: SQLSTATE[HY000]: General error: 1 no such column: t0.name in Connection.php:60) due to broken SQL that is generated.
The generated SQL is:
SELECTt1.nameAS name_2 FROM GitHubRepository t1 WHEREt0.name= ?
I think that with #10431 (which is in the current 2.15.x-dev), you should have been given a deprecation notice for a missing inheritance declaration, and in 3.0, it would have been a failure.
Bug Report
Summary
I have an abstract class with 1 field. An inherited class adds no extra fields.
Doing a repository find of the inherited class generates wrong SQL.
Current behavior
Throws an exception (
Uncaught PDOException: SQLSTATE[HY000]: General error: 1 no such column: t0.name in Connection.php:60
) due to broken SQL that is generated.The generated SQL is:
The code looks like:
In terms of tables, the table
GitHubRepository
has 1 column (name), and tableRepository
has no columns.The text was updated successfully, but these errors were encountered: