From 5f17c3263298fde6a32102410157f36b2335fe72 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 May 2016 17:11:54 +0200 Subject: * transaction support in facade --- app/php/facades/Facade.php | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3