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
Describe the bug modelsMetadata and columnMap don't work well together since v5.3.0. In v5.2.3 everything was fine.
The following script runs at first time, and its output should be 1.
After creating the models' cache, every following execution will result in an error: Column 'user_id' doesn't belong to any of the selected models (1), when preparing: SELECT user_id FROM Users
Deleting the cache directory allows the script to run correctly once more.
Removing the $di->setShared('modelsMetadata', ...); part or not using columnMap "solves" the problem.
Possible culprit #16393.
Maybe related #16411, but I'm not sure.
Describe the bug
modelsMetadata
andcolumnMap
don't work well together since v5.3.0. In v5.2.3 everything was fine.The following script runs at first time, and its output should be
1
.After creating the models' cache, every following execution will result in an error:
Column 'user_id' doesn't belong to any of the selected models (1), when preparing: SELECT user_id FROM Users
Deleting the cache directory allows the script to run correctly once more.
Removing the
$di->setShared('modelsMetadata', ...);
part or not usingcolumnMap
"solves" the problem.Possible culprit #16393.
Maybe related #16411, but I'm not sure.
To Reproduce
Expected behavior
Print
1
every time the script is executed.Details
The text was updated successfully, but these errors were encountered: