[limb-svn] r7094 - 3.x/trunk/limb/active_record/src

svn at limb-project.com svn at limb-project.com
Sun Jul 6 22:56:52 MSD 2008


Author: pachanga
Date: 2008-07-06 22:56:52 +0400 (Sun, 06 Jul 2008)
New Revision: 7094
URL: http://fisheye.limb-project.com/changelog/limb/?cs=7094

Modified:
   3.x/trunk/limb/active_record/src/lmbActiveRecord.class.php
Log:
-- _onBeforeSave() hook is now called really first

Modified: 3.x/trunk/limb/active_record/src/lmbActiveRecord.class.php
===================================================================
--- 3.x/trunk/limb/active_record/src/lmbActiveRecord.class.php	2008-07-06 17:05:54 UTC (rev 7093)
+++ 3.x/trunk/limb/active_record/src/lmbActiveRecord.class.php	2008-07-06 18:56:52 UTC (rev 7094)
@@ -957,12 +957,12 @@
     {
       $this->_is_being_saved = true;
 
-      $this->_savePreRelations();
-
       $this->_onBeforeSave();
 
       $this->_invokeListeners(self :: ON_BEFORE_SAVE);
 
+      $this->_savePreRelations();
+
       if(!$this->isNew() && $this->isDirty())
       {
         $this->_onBeforeUpdate();



More information about the limb-svn mailing list