Show
Ignore:
Timestamp:
06/27/08 19:39:41 (2 years ago)
Author:
jwage
Message:

Fixed Doctrine_Record::preDql*() hooks to accept an event just the same as all the other listeners do. This was simply an oversight/mistake in consistancy of the event listener api.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/lib/Doctrine/Table.php

    r4508 r4573  
    471471 
    472472    /** 
    473      * Gets the record instance 
     473     * Gets the record instance for this table. The Doctrine_Table instance always holds at least one 
     474     * instance of a model so that it can be reused for several things, but primarily it is first 
     475     * used to instantiate all the internal in memory meta data 
    474476     * 
    475477     * @return object  Empty instance of the record 
     
    477479    public function getRecordInstance() 
    478480    { 
     481        if ( ! $this->record) { 
     482            $this->record = new $this->_options['name']; 
     483        } 
    479484        return $this->record; 
    480485    }