protected function getWorkerObject($col, $class)
    {
        $key = $col . '_' . $class;

        if (isset($this->currentObjects[$key])) {
            $this->currentObjects[$key]->clear();
        } else {
            $this->currentObjects[$key] = new $class();
        }

        return $this->currentObjects[$key];
    }
protected function getWorkerObject($col, $class)
    {
        $key = $col . '_' . $class;

        if (isset($this->currentObjects[$key])) {
            $this->currentObjects[$key]->clear();
        } else {
            $this->currentObjects[$key] = new $class();
        }

        return $this->currentObjects[$key];
    }
protected function getWorkerObject ( $ col , $ class ) { $ key = $ col . '_' . $ class ; if ( isset ( $ this -> currentObjects [ $ key ] ) ) { $ this -> currentObjects [ $ key ] -> clear ( ) ; } else { $ this -> currentObjects [ $ key ] = new $ class ( ) ; } return $ this -> currentObjects [ $ key ] ; }
Gets the worker object for the class.
To save memory, we don't create a new object for each row,
But we keep hydrating a single object per class.
The column offset in the row is used to index the array of classes
As there may be more than one object of the same class in the chain

@param int    $col   Offset of the object in the list of objects to hydrate
@param string $class Propel model object class

@return BaseObject
Gets the worker object for the class . To save memory we don t create a new object for each row But we keep hydrating a single object per class . The column offset in the row is used to index the array of classes As there may be more than one object of the same class in the chain