View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007159 | OXID eShop (all versions) | 4. ------ eShop Core ------- | public | 2020-07-15 11:29 | 2024-07-10 14:43 |
Reporter | Helmut L. | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 6.1.5 | ||||
Summary | 0007159: $forceFullStructure paramter or _initDataStructure doesn't always work | ||||
Description | The _initDataStructure method in BaseModel has a paramter to load the full structure, but this parameter is only used if there is no cache file. If you're using a Model class in one place with lazy loading and in another without lazy loading by calling disableLazyLoading on it, then it depends on which place was first called after clearing the cache if you get the full structure or not. There should be either a separate cache file for the full structure or the $forceFullStructure parameter should case the cache file to not be used at all. | ||||
Steps To Reproduce | create on file that uses a Model class with lazy loading execute that file create another file that uses the same Model, but calls disableLazyLoading on it if you call for example getSelectFields, you will see that it doesn't contain all columns, but only the columns that where used in the first file | ||||
Tags | No tags attached. | ||||
Theme | Not defined | ||||
Browser | Not defined | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||