@@ 262-279 (lines=18) @@ | ||
259 | * rethrown wrapped into a PropelException. |
|
260 | * @return array (Route object, last column rank) |
|
261 | */ |
|
262 | public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) |
|
263 | { |
|
264 | $key = RouteTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); |
|
265 | if (null !== ($obj = RouteTableMap::getInstanceFromPool($key))) { |
|
266 | // We no longer rehydrate the object, since this can cause data loss. |
|
267 | // See http://www.propelorm.org/ticket/509 |
|
268 | // $obj->hydrate($row, $offset, true); // rehydrate |
|
269 | $col = $offset + RouteTableMap::NUM_HYDRATE_COLUMNS; |
|
270 | } else { |
|
271 | $cls = RouteTableMap::OM_CLASS; |
|
272 | /** @var Route $obj */ |
|
273 | $obj = new $cls(); |
|
274 | $col = $obj->hydrate($row, $offset, false, $indexType); |
|
275 | RouteTableMap::addInstanceToPool($obj, $key); |
|
276 | } |
|
277 | ||
278 | return array($obj, $col); |
|
279 | } |
|
280 | ||
281 | /** |
|
282 | * The returned array will contain objects of the default type or |
@@ 311-328 (lines=18) @@ | ||
308 | * rethrown wrapped into a PropelException. |
|
309 | * @return array (BannerImageI18n object, last column rank) |
|
310 | */ |
|
311 | public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) |
|
312 | { |
|
313 | $key = BannerImageI18nTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); |
|
314 | if (null !== ($obj = BannerImageI18nTableMap::getInstanceFromPool($key))) { |
|
315 | // We no longer rehydrate the object, since this can cause data loss. |
|
316 | // See http://www.propelorm.org/ticket/509 |
|
317 | // $obj->hydrate($row, $offset, true); // rehydrate |
|
318 | $col = $offset + BannerImageI18nTableMap::NUM_HYDRATE_COLUMNS; |
|
319 | } else { |
|
320 | $cls = BannerImageI18nTableMap::OM_CLASS; |
|
321 | /** @var BannerImageI18n $obj */ |
|
322 | $obj = new $cls(); |
|
323 | $col = $obj->hydrate($row, $offset, false, $indexType); |
|
324 | BannerImageI18nTableMap::addInstanceToPool($obj, $key); |
|
325 | } |
|
326 | ||
327 | return array($obj, $col); |
|
328 | } |
|
329 | ||
330 | /** |
|
331 | * The returned array will contain objects of the default type or |
@@ 311-328 (lines=18) @@ | ||
308 | * rethrown wrapped into a PropelException. |
|
309 | * @return array (BannerImage object, last column rank) |
|
310 | */ |
|
311 | public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) |
|
312 | { |
|
313 | $key = BannerImageTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); |
|
314 | if (null !== ($obj = BannerImageTableMap::getInstanceFromPool($key))) { |
|
315 | // We no longer rehydrate the object, since this can cause data loss. |
|
316 | // See http://www.propelorm.org/ticket/509 |
|
317 | // $obj->hydrate($row, $offset, true); // rehydrate |
|
318 | $col = $offset + BannerImageTableMap::NUM_HYDRATE_COLUMNS; |
|
319 | } else { |
|
320 | $cls = BannerImageTableMap::OM_CLASS; |
|
321 | /** @var BannerImage $obj */ |
|
322 | $obj = new $cls(); |
|
323 | $col = $obj->hydrate($row, $offset, false, $indexType); |
|
324 | BannerImageTableMap::addInstanceToPool($obj, $key); |
|
325 | } |
|
326 | ||
327 | return array($obj, $col); |
|
328 | } |
|
329 | ||
330 | /** |
|
331 | * The returned array will contain objects of the default type or |
@@ 293-310 (lines=18) @@ | ||
290 | * rethrown wrapped into a PropelException. |
|
291 | * @return array (BannersI18n object, last column rank) |
|
292 | */ |
|
293 | public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) |
|
294 | { |
|
295 | $key = BannersI18nTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); |
|
296 | if (null !== ($obj = BannersI18nTableMap::getInstanceFromPool($key))) { |
|
297 | // We no longer rehydrate the object, since this can cause data loss. |
|
298 | // See http://www.propelorm.org/ticket/509 |
|
299 | // $obj->hydrate($row, $offset, true); // rehydrate |
|
300 | $col = $offset + BannersI18nTableMap::NUM_HYDRATE_COLUMNS; |
|
301 | } else { |
|
302 | $cls = BannersI18nTableMap::OM_CLASS; |
|
303 | /** @var BannersI18n $obj */ |
|
304 | $obj = new $cls(); |
|
305 | $col = $obj->hydrate($row, $offset, false, $indexType); |
|
306 | BannersI18nTableMap::addInstanceToPool($obj, $key); |
|
307 | } |
|
308 | ||
309 | return array($obj, $col); |
|
310 | } |
|
311 | ||
312 | /** |
|
313 | * The returned array will contain objects of the default type or |
@@ 288-305 (lines=18) @@ | ||
285 | * rethrown wrapped into a PropelException. |
|
286 | * @return array (Banners object, last column rank) |
|
287 | */ |
|
288 | public static function populateObject($row, $offset = 0, $indexType = TableMap::TYPE_NUM) |
|
289 | { |
|
290 | $key = BannersTableMap::getPrimaryKeyHashFromRow($row, $offset, $indexType); |
|
291 | if (null !== ($obj = BannersTableMap::getInstanceFromPool($key))) { |
|
292 | // We no longer rehydrate the object, since this can cause data loss. |
|
293 | // See http://www.propelorm.org/ticket/509 |
|
294 | // $obj->hydrate($row, $offset, true); // rehydrate |
|
295 | $col = $offset + BannersTableMap::NUM_HYDRATE_COLUMNS; |
|
296 | } else { |
|
297 | $cls = BannersTableMap::OM_CLASS; |
|
298 | /** @var Banners $obj */ |
|
299 | $obj = new $cls(); |
|
300 | $col = $obj->hydrate($row, $offset, false, $indexType); |
|
301 | BannersTableMap::addInstanceToPool($obj, $key); |
|
302 | } |
|
303 | ||
304 | return array($obj, $col); |
|
305 | } |
|
306 | ||
307 | /** |
|
308 | * The returned array will contain objects of the default type or |