propel/generated-classes/Map/ProfileTableMap.php
/**
     * Populates an object of the default type or an object that inherit from the default.
     *
     * @param array  $row       row returned by DataFetcher->fetch().
     * @param int    $offset    The 0-based offset for reading from the resultset row.
     * @param string $indexType The index type of $row. Mostly DataFetcher->getIndexType().
                                 One of the class type constants TableMap::TYPE_PHPNAME, TableMap::TYPE_STUDLYPHPNAME
     *                           TableMap::TYPE_COLNAME, TableMap::TYPE_FIELDNAME, TableMap::TYPE_NUM.
     *
     * @throws PropelException Any exceptions caught during processing will be
     *         rethrown wrapped into a PropelException.
     * @return array (Profile object, last column rank)
     */
Populates an object of the default type or an object that inherit from the default.
@param array  $row       row returned by DataFetcher->fetch().
@param int    $offset    The 0-based offset for reading from the resultset row.
@param string $indexType The index type of $row.

@throws PropelException Any exceptions caught during processing will be
rethrown wrapped into a PropelException.
@return array (Profile object, last column rank)
Populates an object of the default type or an object that inherit from the default . @param array $row row returned by DataFetcher - > fetch () . @param int $offset The 0 - based offset for reading from the resultset row . @param string $indexType The index type of $row . @throws PropelException Any exceptions caught during processing will be rethrown wrapped into a PropelException . @return array ( Profile object last column rank )
public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM)
    {
        $key = ProfileTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType);
        if (null !== ($obj = ProfileTableMap::getInstanceFromPool($key))) {
            $col = $offset + ProfileTableMap::NUM_HYDRATE_COLUMNS;
        } else {
            $cls = ProfileTableMap::OM_CLASS;
            $obj = new $cls();
            $col = $obj->hydrate($row, $offset, false, $indexType);
            ProfileTableMap::addInstanceToPool($obj, $key);
        }
        return array($obj, $col);
    }
public static function populateObject ( $ row , $ offset = 0 , $ indexType = TableMap :: TYPE_NUM ) { $ key = ProfileTableMap :: getPrimaryKeyHashFromRow ( $ row , $ offset , $ indexType ) ; if ( null !== ( $ obj = ProfileTableMap :: getInstanceFromPool ( $ key ) ) ) { $ col = $ offset + ProfileTableMap :: NUM_HYDRATE_COLUMNS ; } else { $ cls = ProfileTableMap :: OM_CLASS ; $ obj = new $ cls ( ) ; $ col = $ obj -> hydrate ( $ row , $ offset , false , $ indexType ) ; ProfileTableMap :: addInstanceToPool ( $ obj , $ key ) ; } return array ( $ obj , $ col ) ; }
Populates an object of the default type or an object that inherit from the default.
Populates an object of the default type or an object that inherit from the default .
// We no longer rehydrate the object, since this can cause data loss. // See http://www.propelorm.org/ticket/509 // $obj->hydrate($row, $offset, true); // rehydrate