root

Changeset 694

Show
Ignore:
Timestamp:
09/01/09 22:33:04 (1 year ago)
Author:
wbond
Message:

Fixed a bug in fActiveRecord that would cause issues with classes containing custom class to table mapping

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fActiveRecord.php

    r692 r694 Hide Line Numbers
    1616 * @link       http://flourishlib.com/fActiveRecord 
    1717 *  
    18  * @version    1.0.0b40 
     18 * @version    1.0.0b41 
     19 * @changes    1.0.0b41  Fixed a bug in the last version that would cause issues with classes containing a custom class to table mapping [wb, 2009-09-01] 
    1920 * @changes    1.0.0b40  Added a check to the configuration part of ::__construct() to ensure modelled tables have primary keys [wb, 2009-08-26] 
    2021 * @changes    1.0.0b39  Changed `set{ColumnName}()` methods to return the record for method chaining, fixed a bug with loading by multi-column unique constraints, fixed a bug with ::load() [wb, 2009-08-26] 
     
    813814        // If the features of this class haven't been set yet, do it 
    814815        if (!isset(self::$configured[$class])) { 
     816            $this->configure(); 
     817            self::$configured[$class] = TRUE; 
     818             
    815819            $table = fORM::tablize($class); 
    816820            if (!fORMSchema::retrieve()->getKeys($table, 'primary')) { 
     
    823827                );   
    824828            } 
    825              
    826             $this->configure(); 
    827             self::$configured[$class] = TRUE; 
    828829             
    829830            // If the configuration was forced, prevent the post::__construct() hook from