diff options
Diffstat (limited to 'lib/model/DomainPeer.php')
-rw-r--r-- | lib/model/DomainPeer.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/model/DomainPeer.php b/lib/model/DomainPeer.php index f52c6ca..f4c06f3 100644 --- a/lib/model/DomainPeer.php +++ b/lib/model/DomainPeer.php @@ -28,6 +28,16 @@ class DomainPeer extends BaseDomainPeer return parent::doSelectJoinUser($criteria, $con); } + protected static function doOnDeleteCascade(Criteria $criteria, Connection $con) + { + // cloning the Criteria in case it's modified by doSelect() or doSelectStmt() + if ($criteria instanceof Criteria) { + $c = clone $criteria; + } + + return parent::doOnDeleteCascade($c, $con); + } + public static function getDomainByName($name) { $c = new Criteria(); |