Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamsxin committed Sep 24, 2019
1 parent f8aeef4 commit a6acac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mvc/model/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ PHP_METHOD(Phalcon_Mvc_Model_Transaction, __construct){
if (!s || Z_TYPE_P(s) != IS_STRING) {
zval models_manager = {};
ZVAL_STR(&service, IS(modelsManager));
PHALCON_CALL_METHOD(&models_manager, getThis(), "get", &service);
PHALCON_CALL_METHOD(&models_manager, getThis(), "getservice", &service);
PHALCON_CALL_METHOD(&service, &models_manager, "getdefaultwriteconnectionservice");
zval_ptr_dtor(&models_manager);
} else {
Expand Down

0 comments on commit a6acac0

Please sign in to comment.