From f4b842596efea1c38059563f14a4797bd14fa3d0 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 10 Dec 2025 02:47:27 +0000 Subject: [PATCH] Skip system models in JS concrete class generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/RSpade/Core/Bundle/BundleCompiler.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/RSpade/Core/Bundle/BundleCompiler.php b/app/RSpade/Core/Bundle/BundleCompiler.php index 754507317..2a03a1415 100755 --- a/app/RSpade/Core/Bundle/BundleCompiler.php +++ b/app/RSpade/Core/Bundle/BundleCompiler.php @@ -1211,11 +1211,16 @@ class BundleCompiler $class_name = $manifest_files[$relative]['class']; - // Check if this class is a subclass of Rsx_Model_Abstract (but not system models) + // Check if this class is a subclass of Rsx_Model_Abstract if (!Manifest::php_is_subclass_of($class_name, 'Rsx_Model_Abstract')) { continue; } + // Skip system models (internal framework models not exposed to JavaScript) + if (Manifest::php_is_subclass_of($class_name, 'Rsx_System_Model_Abstract')) { + continue; + } + // Skip abstract model classes - only concrete models get JS stubs if (Manifest::php_is_abstract($class_name)) { continue;