| @@ 509-537 (lines=29) @@ | ||
| 506 | * @return void |
|
| 507 | * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db |
|
| 508 | */ |
|
| 509 | public function reload($deep = false, ConnectionInterface $con = null) |
|
| 510 | { |
|
| 511 | if ($this->isDeleted()) { |
|
| 512 | throw new PropelException("Cannot reload a deleted object."); |
|
| 513 | } |
|
| 514 | ||
| 515 | if ($this->isNew()) { |
|
| 516 | throw new PropelException("Cannot reload an unsaved object."); |
|
| 517 | } |
|
| 518 | ||
| 519 | if ($con === null) { |
|
| 520 | $con = Propel::getServiceContainer()->getReadConnection(TaskTableMap::DATABASE_NAME); |
|
| 521 | } |
|
| 522 | ||
| 523 | // We don't need to alter the object instance pool; we're just modifying this instance |
|
| 524 | // already in the pool. |
|
| 525 | ||
| 526 | $dataFetcher = ChildTaskQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); |
|
| 527 | $row = $dataFetcher->fetch(); |
|
| 528 | $dataFetcher->close(); |
|
| 529 | if (!$row) { |
|
| 530 | throw new PropelException('Cannot find matching row in the database to reload object values.'); |
|
| 531 | } |
|
| 532 | $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate |
|
| 533 | ||
| 534 | if ($deep) { // also de-associate any related objects? |
|
| 535 | ||
| 536 | } // if (deep) |
|
| 537 | } |
|
| 538 | ||
| 539 | /** |
|
| 540 | * Removes this object from datastore and sets delete attribute. |
|
| @@ 692-720 (lines=29) @@ | ||
| 689 | * @return void |
|
| 690 | * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db |
|
| 691 | */ |
|
| 692 | public function reload($deep = false, ConnectionInterface $con = null) |
|
| 693 | { |
|
| 694 | if ($this->isDeleted()) { |
|
| 695 | throw new PropelException("Cannot reload a deleted object."); |
|
| 696 | } |
|
| 697 | ||
| 698 | if ($this->isNew()) { |
|
| 699 | throw new PropelException("Cannot reload an unsaved object."); |
|
| 700 | } |
|
| 701 | ||
| 702 | if ($con === null) { |
|
| 703 | $con = Propel::getServiceContainer()->getReadConnection(UserTableMap::DATABASE_NAME); |
|
| 704 | } |
|
| 705 | ||
| 706 | // We don't need to alter the object instance pool; we're just modifying this instance |
|
| 707 | // already in the pool. |
|
| 708 | ||
| 709 | $dataFetcher = ChildUserQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); |
|
| 710 | $row = $dataFetcher->fetch(); |
|
| 711 | $dataFetcher->close(); |
|
| 712 | if (!$row) { |
|
| 713 | throw new PropelException('Cannot find matching row in the database to reload object values.'); |
|
| 714 | } |
|
| 715 | $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate |
|
| 716 | ||
| 717 | if ($deep) { // also de-associate any related objects? |
|
| 718 | ||
| 719 | } // if (deep) |
|
| 720 | } |
|
| 721 | ||
| 722 | /** |
|
| 723 | * Removes this object from datastore and sets delete attribute. |
|
| @@ 535-563 (lines=29) @@ | ||
| 532 | * @return void |
|
| 533 | * @throws PropelException - if this object is deleted, unsaved or doesn't have pk match in db |
|
| 534 | */ |
|
| 535 | public function reload($deep = false, ConnectionInterface $con = null) |
|
| 536 | { |
|
| 537 | if ($this->isDeleted()) { |
|
| 538 | throw new PropelException("Cannot reload a deleted object."); |
|
| 539 | } |
|
| 540 | ||
| 541 | if ($this->isNew()) { |
|
| 542 | throw new PropelException("Cannot reload an unsaved object."); |
|
| 543 | } |
|
| 544 | ||
| 545 | if ($con === null) { |
|
| 546 | $con = Propel::getServiceContainer()->getReadConnection(SelfpriceTableMap::DATABASE_NAME); |
|
| 547 | } |
|
| 548 | ||
| 549 | // We don't need to alter the object instance pool; we're just modifying this instance |
|
| 550 | // already in the pool. |
|
| 551 | ||
| 552 | $dataFetcher = ChildSelfpriceQuery::create(null, $this->buildPkeyCriteria())->setFormatter(ModelCriteria::FORMAT_STATEMENT)->find($con); |
|
| 553 | $row = $dataFetcher->fetch(); |
|
| 554 | $dataFetcher->close(); |
|
| 555 | if (!$row) { |
|
| 556 | throw new PropelException('Cannot find matching row in the database to reload object values.'); |
|
| 557 | } |
|
| 558 | $this->hydrate($row, 0, true, $dataFetcher->getIndexType()); // rehydrate |
|
| 559 | ||
| 560 | if ($deep) { // also de-associate any related objects? |
|
| 561 | ||
| 562 | } // if (deep) |
|
| 563 | } |
|
| 564 | ||
| 565 | /** |
|
| 566 | * Removes this object from datastore and sets delete attribute. |
|