Skip to content

Instantly share code, notes, and snippets.

View rhoerr's full-sized avatar

Ryan Hoerr rhoerr

View GitHub Profile
@rhoerr
rhoerr / m2-lazy-ghost-objects.patch
Last active May 6, 2026 03:25
Lazy Object Loading patch for Magento 2.4.8. Requires PHP 8.4. See https://github.com/mage-os/mageos-magento2/pull/225 for details; share your results!
diff --git a/vendor/magento/framework/ObjectManager/Config/Compiled.php b/vendor/magento/framework/ObjectManager/Config/Compiled.php
--- a/vendor/magento/framework/ObjectManager/Config/Compiled.php
+++ b/vendor/magento/framework/ObjectManager/Config/Compiled.php
@@ -7,12 +7,13 @@
use Magento\Framework\ObjectManager\ConfigInterface;
use Magento\Framework\ObjectManager\ConfigCacheInterface;
+use Magento\Framework\ObjectManager\LazyTypeAwareInterface;
use Magento\Framework\ObjectManager\RelationsInterface;
@rhoerr
rhoerr / README.md
Last active December 2, 2025 19:20
MySQL views to aggregate Magento 2 EAV data -- requires MySQL 5.7+ or equivalent

Important

This EAV debugger tool has been repackaged and released as a proper Magento module now.

Please install it using composer. https://github.com/mage-os-lab/module-eav-debug-views

Install with:

composer require --dev mage-os/module-eav-debug-views
bin/magento setup:upgrade