-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Description
The LeagcyModelLoaderTrait is having unexpected behaviour in J4. The static variable used to load the classes is unfortunately initialised per class. This means changing BaseDatabaseModel::getInstance()/JModelLegacy::getInstance() to BaseModel::getInstance() - this is not an intended b/c break. Options are:
- Move the trait to
BaseDatabaseModelfromBaseModel - Rework the static variable to one in the trait. However this will allow 3rd parties to override it which isn't intended.
This has been an issue I've had to manually patch in the action logs and privacy components (e.g. 494a567), so is definitely a real thing for components migrating from J3 to J4