Process/FixDataObjectCtor.php
[Pman.Core] / Process / FixDataObjectCtor.php
index 40ccde5..e4b4287 100644 (file)
@@ -51,6 +51,9 @@ class Pman_Core_Process_FixDataObjectCtor extends Pman
         $c = preg_replace("/new DataObjects_([a-z_]+)/i", "DB_DataObject::factory('\\1')", $c);
         
         $c = preg_replace("/DataObjects_([a-z_]+)::/i", "DB_DataObject::factory('\\1')::", $c);
+        
+        $c = preg_replace("/DB_DataObjects::staticGet(\"DataObjects_([a-z_]+)\"/i", "DB_DataObject::factory('\\1')->load(", $c);
+        $c = preg_replace("/DB_DataObjects::staticGet('DataObjects_([a-z_]+)'/i", "DB_DataObject::factory('\\1')->load(", $c);
 
       
         if ($old_c == $c) {