application/modules/xbanners/models/Base/BannerImage.php 1 location
|
@@ 859-879 (lines=21) @@
|
| 856 |
|
* @see BannerImage::setDeleted() |
| 857 |
|
* @see BannerImage::isDeleted() |
| 858 |
|
*/ |
| 859 |
|
public function delete(ConnectionInterface $con = null) |
| 860 |
|
{ |
| 861 |
|
if ($this->isDeleted()) { |
| 862 |
|
throw new PropelException("This object has already been deleted."); |
| 863 |
|
} |
| 864 |
|
|
| 865 |
|
if ($con === null) { |
| 866 |
|
$con = Propel::getServiceContainer()->getWriteConnection(BannerImageTableMap::DATABASE_NAME); |
| 867 |
|
} |
| 868 |
|
|
| 869 |
|
$con->transaction(function () use ($con) { |
| 870 |
|
$deleteQuery = ChildBannerImageQuery::create() |
| 871 |
|
->filterByPrimaryKey($this->getPrimaryKey()); |
| 872 |
|
$ret = $this->preDelete($con); |
| 873 |
|
if ($ret) { |
| 874 |
|
$deleteQuery->delete($con); |
| 875 |
|
$this->postDelete($con); |
| 876 |
|
$this->setDeleted(true); |
| 877 |
|
} |
| 878 |
|
}); |
| 879 |
|
} |
| 880 |
|
|
| 881 |
|
/** |
| 882 |
|
* Persists this object to the database. |
application/modules/xbanners/models/Base/BannerImageI18n.php 1 location
|
@@ 684-704 (lines=21) @@
|
| 681 |
|
* @see BannerImageI18n::setDeleted() |
| 682 |
|
* @see BannerImageI18n::isDeleted() |
| 683 |
|
*/ |
| 684 |
|
public function delete(ConnectionInterface $con = null) |
| 685 |
|
{ |
| 686 |
|
if ($this->isDeleted()) { |
| 687 |
|
throw new PropelException("This object has already been deleted."); |
| 688 |
|
} |
| 689 |
|
|
| 690 |
|
if ($con === null) { |
| 691 |
|
$con = Propel::getServiceContainer()->getWriteConnection(BannerImageI18nTableMap::DATABASE_NAME); |
| 692 |
|
} |
| 693 |
|
|
| 694 |
|
$con->transaction(function () use ($con) { |
| 695 |
|
$deleteQuery = ChildBannerImageI18nQuery::create() |
| 696 |
|
->filterByPrimaryKey($this->getPrimaryKey()); |
| 697 |
|
$ret = $this->preDelete($con); |
| 698 |
|
if ($ret) { |
| 699 |
|
$deleteQuery->delete($con); |
| 700 |
|
$this->postDelete($con); |
| 701 |
|
$this->setDeleted(true); |
| 702 |
|
} |
| 703 |
|
}); |
| 704 |
|
} |
| 705 |
|
|
| 706 |
|
/** |
| 707 |
|
* Persists this object to the database. |
application/modules/xbanners/models/Base/Banners.php 1 location
|
@@ 701-721 (lines=21) @@
|
| 698 |
|
* @see Banners::setDeleted() |
| 699 |
|
* @see Banners::isDeleted() |
| 700 |
|
*/ |
| 701 |
|
public function delete(ConnectionInterface $con = null) |
| 702 |
|
{ |
| 703 |
|
if ($this->isDeleted()) { |
| 704 |
|
throw new PropelException("This object has already been deleted."); |
| 705 |
|
} |
| 706 |
|
|
| 707 |
|
if ($con === null) { |
| 708 |
|
$con = Propel::getServiceContainer()->getWriteConnection(BannersTableMap::DATABASE_NAME); |
| 709 |
|
} |
| 710 |
|
|
| 711 |
|
$con->transaction(function () use ($con) { |
| 712 |
|
$deleteQuery = ChildBannersQuery::create() |
| 713 |
|
->filterByPrimaryKey($this->getPrimaryKey()); |
| 714 |
|
$ret = $this->preDelete($con); |
| 715 |
|
if ($ret) { |
| 716 |
|
$deleteQuery->delete($con); |
| 717 |
|
$this->postDelete($con); |
| 718 |
|
$this->setDeleted(true); |
| 719 |
|
} |
| 720 |
|
}); |
| 721 |
|
} |
| 722 |
|
|
| 723 |
|
/** |
| 724 |
|
* Persists this object to the database. |
application/modules/xbanners/models/Base/BannersI18n.php 1 location
|
@@ 564-584 (lines=21) @@
|
| 561 |
|
* @see BannersI18n::setDeleted() |
| 562 |
|
* @see BannersI18n::isDeleted() |
| 563 |
|
*/ |
| 564 |
|
public function delete(ConnectionInterface $con = null) |
| 565 |
|
{ |
| 566 |
|
if ($this->isDeleted()) { |
| 567 |
|
throw new PropelException("This object has already been deleted."); |
| 568 |
|
} |
| 569 |
|
|
| 570 |
|
if ($con === null) { |
| 571 |
|
$con = Propel::getServiceContainer()->getWriteConnection(BannersI18nTableMap::DATABASE_NAME); |
| 572 |
|
} |
| 573 |
|
|
| 574 |
|
$con->transaction(function () use ($con) { |
| 575 |
|
$deleteQuery = ChildBannersI18nQuery::create() |
| 576 |
|
->filterByPrimaryKey($this->getPrimaryKey()); |
| 577 |
|
$ret = $this->preDelete($con); |
| 578 |
|
if ($ret) { |
| 579 |
|
$deleteQuery->delete($con); |
| 580 |
|
$this->postDelete($con); |
| 581 |
|
$this->setDeleted(true); |
| 582 |
|
} |
| 583 |
|
}); |
| 584 |
|
} |
| 585 |
|
|
| 586 |
|
/** |
| 587 |
|
* Persists this object to the database. |