php - Why Aren't the _construct() Methods on EAV Resources and Collections Declared as Abstract Methods? -
I'm poking around the intestines of the Magento system code. For "regular" model resources, Magento's _construct
initialization conference has been declared an intangible
file: grain / core / model / resource / abstract.fof abstract Protected function _ composition (); This makes sense, because it compels developers to create their own model resources, which is necessary to call the composition, which makes the necessary initialization. However, the same conference / requirement exists for EAV model resources and their collections, but the _construct
method not in those hierarchies is any Do you know the logic behind this? In such cases, do you need the _construct
method on these models? Or is it a historical backward compatibility thing?
It has been left for backward compatibility issues;)
Comments
Post a Comment