summaryrefslogtreecommitdiff
path: root/app/php/facades/Facade.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-06 17:11:54 +0200
committeremkael <emkael@tlen.pl>2016-05-06 17:11:54 +0200
commit5f17c3263298fde6a32102410157f36b2335fe72 (patch)
treed8a8aa39f5e595135a9d1a45e565fce8bc6ccddf /app/php/facades/Facade.php
parent7017ae3f4a567ab5d1f26fe04122cac981dcfe29 (diff)
* transaction support in facade
Diffstat (limited to 'app/php/facades/Facade.php')
-rw-r--r--app/php/facades/Facade.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/php/facades/Facade.php b/app/php/facades/Facade.php
index 99f5f56..346024a 100644
--- a/app/php/facades/Facade.php
+++ b/app/php/facades/Facade.php
@@ -47,6 +47,10 @@ class Facade {
return $this->getClient()->queryForMap($sqlMap, $params, $key, $value);
}
+ protected function beginTransaction() {
+ return $this->getClient()->DbConnection->beginTransaction();
+ }
+
protected function raiseEvent($event, ...$params) {
return Prado::getApplication()->getModule('events')->raiseApplicationEvent(
$event, ...$params