Skip to content

Commit

Permalink
Fix #1783
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Jan 13, 2014
1 parent 385e0d5 commit 1be335c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/mvc/collection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, save){
MAKE_STD_ZVAL(options);
Z_SET_REFCOUNT_P(options, 0); /* will be automatically destroyed by Zend on return from method call */
array_init_size(options, 1);
add_assoc_bool_ex(options, SS("safe"), 1);
add_assoc_long_ex(options, SS("w"), 1);

/**
* Save the document
Expand Down Expand Up @@ -1941,7 +1941,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, delete){

PHALCON_INIT_VAR(options);
array_init_size(options, 1);
add_assoc_bool_ex(options, SS("safe"), 1);
add_assoc_long_ex(options, SS("w"), 1);

/**
* Remove the instance
Expand Down

0 comments on commit 1be335c

Please sign in to comment.