diff --git a/CHANGELOG-5.0.md b/CHANGELOG-5.0.md
index 4b05078eff4..ff4574a3d64 100644
--- a/CHANGELOG-5.0.md
+++ b/CHANGELOG-5.0.md
@@ -1,4 +1,4 @@
-# [5.0.0beta3](https://github.com/phalcon/cphalcon/releases/tag/v5.0.0beta2) (xxxx-xx-xx)
+# [5.0.0beta3](https://github.com/phalcon/cphalcon/releases/tag/v5.0.0beta3) (2022-02-06)
## Changed
- Renamed `Phalcon\Db\Result\Pdo` to `Phalcon\Db\Result\PdoResult` to avoid collisions with `\PDO` [#15874](https://github.com/phalcon/cphalcon/issues/15854)
diff --git a/build/phalcon/phalcon.zep.c b/build/phalcon/phalcon.zep.c
index febf0bdaf54..4e1e577b208 100644
--- a/build/phalcon/phalcon.zep.c
+++ b/build/phalcon/phalcon.zep.c
@@ -22803,7 +22803,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Html_Link_EvolvableLink)
{
ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Html\\Link, EvolvableLink, phalcon, html_link_evolvablelink, phalcon_html_link_link_ce, phalcon_html_link_evolvablelink_method_entry, 0);
- zend_class_implements(phalcon_html_link_evolvablelink_ce, 1, zephir_get_internal_ce(SL("psrext\\link\\evolvablelinkinterface")));
+ zend_class_implements(phalcon_html_link_evolvablelink_ce, 1, zephir_get_internal_ce(SL("psr\\link\\evolvablelinkinterface")));
return SUCCESS;
}
@@ -22986,7 +22986,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Html_Link_EvolvableLinkProvider)
{
ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Html\\Link, EvolvableLinkProvider, phalcon, html_link_evolvablelinkprovider, phalcon_html_link_linkprovider_ce, phalcon_html_link_evolvablelinkprovider_method_entry, 0);
- zend_class_implements(phalcon_html_link_evolvablelinkprovider_ce, 1, zephir_get_internal_ce(SL("psrext\\link\\evolvablelinkproviderinterface")));
+ zend_class_implements(phalcon_html_link_evolvablelinkprovider_ce, 1, zephir_get_internal_ce(SL("psr\\link\\evolvablelinkproviderinterface")));
return SUCCESS;
}
@@ -23077,7 +23077,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Html_Link_Link)
zend_declare_property_string(phalcon_html_link_link_ce, SL("href"), "", ZEND_ACC_PROTECTED);
zend_declare_property_null(phalcon_html_link_link_ce, SL("rels"), ZEND_ACC_PROTECTED);
zend_declare_property_bool(phalcon_html_link_link_ce, SL("templated"), 0, ZEND_ACC_PROTECTED);
- zend_class_implements(phalcon_html_link_link_ce, 1, zephir_get_internal_ce(SL("psrext\\link\\linkinterface")));
+ zend_class_implements(phalcon_html_link_link_ce, 1, zephir_get_internal_ce(SL("psr\\link\\linkinterface")));
return SUCCESS;
}
@@ -23269,7 +23269,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Html_Link_LinkProvider)
zend_declare_property_null(phalcon_html_link_linkprovider_ce, SL("links"), ZEND_ACC_PROTECTED);
phalcon_html_link_linkprovider_ce->create_object = zephir_init_properties_Phalcon_Html_Link_LinkProvider;
- zend_class_implements(phalcon_html_link_linkprovider_ce, 1, zephir_get_internal_ce(SL("psrext\\link\\linkproviderinterface")));
+ zend_class_implements(phalcon_html_link_linkprovider_ce, 1, zephir_get_internal_ce(SL("psr\\link\\linkproviderinterface")));
return SUCCESS;
}
@@ -40028,7 +40028,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, findFirst)
zephir_array_fast_append(&_1$$5, parameters);
ZEPHIR_CPY_WRT(¶ms, &_1$$5);
} else {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1634);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1636);
return;
}
ZVAL_LONG(&_3, 1);
@@ -40157,7 +40157,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields)
zephir_read_property(&_0, this_ptr, ZEND_STRL("snapshot"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_CPY_WRT(&snapshot, &_0);
if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'keepSnapshots' option must be enabled to track changes", "phalcon/Mvc/Model.zep", 1720);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'keepSnapshots' option must be enabled to track changes", "phalcon/Mvc/Model.zep", 1722);
return;
}
ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0);
@@ -40173,7 +40173,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields)
ZEPHIR_INIT_VAR(&changed);
array_init(&changed);
ZEPHIR_INIT_VAR(&_1);
- zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1778);
+ zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1780);
if (Z_TYPE_P(&allAttributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&allAttributes), _4, _5, _2)
{
@@ -40186,17 +40186,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields)
ZEPHIR_INIT_NVAR(&_1);
ZVAL_COPY(&_1, _2);
if (!(zephir_array_isset(&snapshot, &name))) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1753);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1755);
continue;
}
ZEPHIR_OBS_NVAR(&value);
if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1763);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1765);
continue;
}
- zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1771);
+ zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1773);
if (!ZEPHIR_IS_IDENTICAL(&value, &_6$$6)) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1772);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1774);
continue;
}
} ZEND_HASH_FOREACH_END();
@@ -40214,17 +40214,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, getChangedFields)
ZEPHIR_CALL_METHOD(&_1, &allAttributes, "current", NULL, 0);
zephir_check_call_status();
if (!(zephir_array_isset(&snapshot, &name))) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1753);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1755);
continue;
}
ZEPHIR_OBS_NVAR(&value);
if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1763);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1765);
continue;
}
- zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1771);
+ zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1773);
if (!ZEPHIR_IS_IDENTICAL(&value, &_7$$10)) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1772);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1774);
continue;
}
ZEPHIR_CALL_METHOD(NULL, &allAttributes, "next", NULL, 0);
@@ -40305,7 +40305,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages)
ZEPHIR_INIT_VAR(&filtered);
array_init(&filtered);
zephir_read_property(&_1$$3, this_ptr, ZEND_STRL("errorMessages"), PH_NOISY_CC | PH_READONLY);
- zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1835);
+ zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1837);
if (Z_TYPE_P(&_1$$3) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_1$$3), _2$$3)
{
@@ -40314,7 +40314,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages)
ZEPHIR_CALL_METHOD(&_4$$4, &message, "getfield", NULL, 0);
zephir_check_call_status();
if (ZEPHIR_IS_EQUAL(&_4$$4, filter)) {
- zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1831);
+ zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1833);
}
} ZEND_HASH_FOREACH_END();
} else {
@@ -40331,7 +40331,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getMessages)
ZEPHIR_CALL_METHOD(&_5$$6, &message, "getfield", NULL, 0);
zephir_check_call_status();
if (ZEPHIR_IS_EQUAL(&_5$$6, filter)) {
- zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1831);
+ zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1833);
}
ZEPHIR_CALL_METHOD(NULL, &_1$$3, "next", NULL, 0);
zephir_check_call_status();
@@ -40379,7 +40379,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getModelsMetaData)
zephir_check_call_status();
ZEPHIR_CPY_WRT(&metaData, &_1$$3);
if (UNEXPECTED(Z_TYPE_P(&metaData) != IS_OBJECT)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1869);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1871);
return;
}
zephir_update_property_zval(this_ptr, ZEND_STRL("modelsMetaData"), &metaData);
@@ -40504,7 +40504,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, getRelated)
ZEPHIR_CONCAT_SVSVS(&_3$$3, "There is no defined relations for the model '", &className, "' using alias '", &alias, "'");
ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 31, &_3$$3);
zephir_check_call_status();
- zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1948);
+ zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1950);
ZEPHIR_MM_RESTORE();
return;
}
@@ -40622,21 +40622,21 @@ static PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields)
zephir_read_property(&_0, this_ptr, ZEND_STRL("oldSnapshot"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_CPY_WRT(&oldSnapshot, &_0);
if (UNEXPECTED(!(ZEPHIR_GLOBAL(orm).update_snapshot_on_save))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'updateSnapshotOnSave' option must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 2072);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'updateSnapshotOnSave' option must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 2074);
return;
}
if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'keepSnapshots' option must be enabled to track changes", "phalcon/Mvc/Model.zep", 2078);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'keepSnapshots' option must be enabled to track changes", "phalcon/Mvc/Model.zep", 2080);
return;
}
zephir_read_property(&_0, this_ptr, ZEND_STRL("dirtyState"), PH_NOISY_CC | PH_READONLY);
if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 2087);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 2089);
return;
}
ZEPHIR_INIT_VAR(&updated);
array_init(&updated);
- zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 2102);
+ zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 2104);
if (Z_TYPE_P(&snapshot) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&snapshot), _3, _4, _1)
{
@@ -40650,11 +40650,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields)
ZVAL_COPY(&value, _1);
_5$$6 = !(zephir_array_isset(&oldSnapshot, &name));
if (!(_5$$6)) {
- zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2097);
+ zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2099);
_5$$6 = !ZEPHIR_IS_IDENTICAL(&value, &_6$$6);
}
if (_5$$6) {
- zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2098);
+ zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2100);
}
} ZEND_HASH_FOREACH_END();
} else {
@@ -40672,11 +40672,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields)
zephir_check_call_status();
_7$$8 = !(zephir_array_isset(&oldSnapshot, &name));
if (!(_7$$8)) {
- zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2097);
+ zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2099);
_7$$8 = !ZEPHIR_IS_IDENTICAL(&value, &_8$$8);
}
if (_7$$8) {
- zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2098);
+ zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2100);
}
ZEPHIR_CALL_METHOD(NULL, &snapshot, "next", NULL, 0);
zephir_check_call_status();
@@ -41076,7 +41076,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh)
zephir_read_property(&_0, this_ptr, ZEND_STRL("dirtyState"), PH_NOISY_CC | PH_READONLY);
if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2357);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2359);
return;
}
ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0);
@@ -41103,7 +41103,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh)
ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "has", NULL, 0, &metaData, &readConnection);
zephir_check_call_status();
if (UNEXPECTED(!zephir_is_true(&_2$$6))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2382);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2384);
return;
}
zephir_read_property(&_3$$6, this_ptr, ZEND_STRL("uniqueKey"), PH_NOISY_CC | PH_READONLY);
@@ -41112,14 +41112,14 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh)
zephir_read_property(&_1, this_ptr, ZEND_STRL("uniqueParams"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_CPY_WRT(&uniqueParams, &_1);
if (UNEXPECTED(Z_TYPE_P(&uniqueParams) != IS_ARRAY)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2393);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2395);
return;
}
ZEPHIR_INIT_VAR(&fields);
array_init(&fields);
ZEPHIR_CALL_METHOD(&_4, &metaData, "getattributes", NULL, 0, this_ptr);
zephir_check_call_status();
- zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2408);
+ zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2410);
if (Z_TYPE_P(&_4) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_4), _5)
{
@@ -41128,7 +41128,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh)
ZEPHIR_INIT_NVAR(&_7$$9);
zephir_create_array(&_7$$9, 1, 0);
zephir_array_fast_append(&_7$$9, &attribute);
- zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2402);
+ zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2404);
} ZEND_HASH_FOREACH_END();
} else {
ZEPHIR_CALL_METHOD(NULL, &_4, "rewind", NULL, 0);
@@ -41144,7 +41144,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, refresh)
ZEPHIR_INIT_NVAR(&_8$$10);
zephir_create_array(&_8$$10, 1, 0);
zephir_array_fast_append(&_8$$10, &attribute);
- zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2402);
+ zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2404);
ZEPHIR_CALL_METHOD(NULL, &_4, "next", NULL, 0);
zephir_check_call_status();
}
@@ -41285,7 +41285,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, save)
zephir_check_call_status();
ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", NULL, 511, this_ptr, &_7$$11);
zephir_check_call_status();
- zephir_throw_exception_debug(&_6$$11, "phalcon/Mvc/Model.zep", 2559);
+ zephir_throw_exception_debug(&_6$$11, "phalcon/Mvc/Model.zep", 2561);
ZEPHIR_MM_RESTORE();
return;
}
@@ -41439,7 +41439,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize)
ZEPHIR_CALL_CE_STATIC(&container, phalcon_di_di_ce, "getdefault", &_1, 0);
zephir_check_call_status();
if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injection container is required to access the services related to the ODM", "phalcon/Mvc/Model.zep", 2679);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injection container is required to access the services related to the ODM", "phalcon/Mvc/Model.zep", 2681);
return;
}
zephir_update_property_zval(this_ptr, ZEND_STRL("container"), &container);
@@ -41449,7 +41449,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize)
zephir_check_call_status();
ZEPHIR_CPY_WRT(&manager, &_2$$3);
if (UNEXPECTED(Z_TYPE_P(&manager) != IS_OBJECT)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2695);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2697);
return;
}
zephir_update_property_zval(this_ptr, ZEND_STRL("modelsManager"), &manager);
@@ -41457,7 +41457,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, unserialize)
zephir_check_call_status();
ZEPHIR_OBS_VAR(&properties);
if (zephir_array_isset_string_fetch(&properties, &attributes, SL("attributes"), 0)) {
- zephir_is_iterable(&properties, 0, "phalcon/Mvc/Model.zep", 2718);
+ zephir_is_iterable(&properties, 0, "phalcon/Mvc/Model.zep", 2720);
if (Z_TYPE_P(&properties) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&properties), _6$$7, _7$$7, _4$$7)
{
@@ -41687,7 +41687,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
if (Z_TYPE_P(columnMap) == IS_ARRAY) {
ZEPHIR_INIT_VAR(&snapshot);
array_init(&snapshot);
- zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2836);
+ zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2838);
if (Z_TYPE_P(&data) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3)
{
@@ -41711,7 +41711,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
ZEPHIR_CONCAT_SVS(&_5$$7, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 31, &_5$$7);
zephir_check_call_status();
- zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2816);
+ zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2818);
ZEPHIR_MM_RESTORE();
return;
}
@@ -41727,7 +41727,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
ZEPHIR_CONCAT_SVS(&_8$$10, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_7$$10, "__construct", &_6, 31, &_8$$10);
zephir_check_call_status();
- zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2827);
+ zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2829);
ZEPHIR_MM_RESTORE();
return;
}
@@ -41761,7 +41761,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
ZEPHIR_CONCAT_SVS(&_10$$14, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_9$$14, "__construct", &_6, 31, &_10$$14);
zephir_check_call_status();
- zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2816);
+ zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2818);
ZEPHIR_MM_RESTORE();
return;
}
@@ -41777,7 +41777,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_6, 31, &_12$$17);
zephir_check_call_status();
- zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2827);
+ zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2829);
ZEPHIR_MM_RESTORE();
return;
}
@@ -41850,7 +41850,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
if (Z_TYPE_P(columnMap) == IS_ARRAY) {
ZEPHIR_INIT_VAR(&snapshot);
array_init(&snapshot);
- zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2901);
+ zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2903);
if (Z_TYPE_P(&data) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3)
{
@@ -41883,7 +41883,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
ZEPHIR_CONCAT_SVS(&_8$$8, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_7$$8, "__construct", &_9, 31, &_8$$8);
zephir_check_call_status();
- zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2881);
+ zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2883);
ZEPHIR_MM_RESTORE();
return;
}
@@ -41899,7 +41899,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
ZEPHIR_CONCAT_SVS(&_11$$11, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", &_9, 31, &_11$$11);
zephir_check_call_status();
- zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2892);
+ zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2894);
ZEPHIR_MM_RESTORE();
return;
}
@@ -41942,7 +41942,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
ZEPHIR_CONCAT_SVS(&_15$$16, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_14$$16, "__construct", &_9, 31, &_15$$16);
zephir_check_call_status();
- zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2881);
+ zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2883);
ZEPHIR_MM_RESTORE();
return;
}
@@ -41958,7 +41958,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
ZEPHIR_CONCAT_SVS(&_17$$19, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_16$$19, "__construct", &_9, 31, &_17$$19);
zephir_check_call_status();
- zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2892);
+ zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2894);
ZEPHIR_MM_RESTORE();
return;
}
@@ -42251,7 +42251,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray)
zephir_check_call_status();
ZEPHIR_CALL_METHOD(&_0, &metaData, "getattributes", NULL, 0, this_ptr);
zephir_check_call_status();
- zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 3173);
+ zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 3175);
if (Z_TYPE_P(&_0) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1)
{
@@ -42276,7 +42276,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray)
ZEPHIR_CONCAT_SVS(&_7$$7, "Column '", &attribute, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", &_8, 31, &_7$$7);
zephir_check_call_status();
- zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 3151);
+ zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 3153);
ZEPHIR_MM_RESTORE();
return;
}
@@ -42327,7 +42327,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, toArray)
ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &attribute, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_8, 31, &_12$$17);
zephir_check_call_status();
- zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 3151);
+ zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 3153);
ZEPHIR_MM_RESTORE();
return;
}
@@ -42508,7 +42508,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZEPHIR_CALL_METHOD(&belongsTo, &manager, "getbelongsto", NULL, 0, this_ptr);
zephir_check_call_status();
error = 0;
- zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3384);
+ zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3386);
if (Z_TYPE_P(&belongsTo) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&belongsTo), _1)
{
@@ -42523,7 +42523,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
action = 1;
if (zephir_array_isset_string(&foreignKey, SL("action"))) {
ZEPHIR_OBS_NVAR(&_3$$5);
- zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3275);
+ zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3277);
action = zephir_get_intval(&_3$$5);
}
if (action != 1) {
@@ -42543,7 +42543,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0);
zephir_check_call_status();
if (Z_TYPE_P(&fields) == IS_ARRAY) {
- zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3318);
+ zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3320);
if (Z_TYPE_P(&fields) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _8$$7, _9$$7, _6$$7)
{
@@ -42557,11 +42557,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZVAL_COPY(&field, _6$$7);
ZEPHIR_OBS_NVAR(&value);
zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC);
- zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3310);
+ zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3312);
ZEPHIR_INIT_NVAR(&_11$$8);
ZEPHIR_CONCAT_SVSV(&_11$$8, "[", &_10$$8, "] = ?", &position);
- zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3310);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3311);
+ zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3312);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3313);
if (Z_TYPE_P(&value) == IS_NULL) {
numberNull++;
}
@@ -42581,11 +42581,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
zephir_check_call_status();
ZEPHIR_OBS_NVAR(&value);
zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC);
- zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3310);
+ zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3312);
ZEPHIR_INIT_NVAR(&_13$$10);
ZEPHIR_CONCAT_SVSV(&_13$$10, "[", &_12$$10, "] = ?", &position);
- zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3310);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3311);
+ zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3312);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3313);
if (Z_TYPE_P(&value) == IS_NULL) {
numberNull++;
}
@@ -42601,15 +42601,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC);
ZEPHIR_INIT_NVAR(&_14$$12);
ZEPHIR_CONCAT_SVS(&_14$$12, "[", &referencedFields, "] = ?0");
- zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3322);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3323);
+ zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3324);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3325);
if (Z_TYPE_P(&value) == IS_NULL) {
validateWithNulls = 1;
}
}
ZEPHIR_OBS_NVAR(&extraConditions);
if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) {
- zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3334);
+ zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3336);
}
if (validateWithNulls) {
ZEPHIR_OBS_NVAR(&allowNulls);
@@ -42675,7 +42675,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
action = 1;
if (zephir_array_isset_string(&foreignKey, SL("action"))) {
ZEPHIR_OBS_NVAR(&_24$$24);
- zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3275);
+ zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3277);
action = zephir_get_intval(&_24$$24);
}
if (action != 1) {
@@ -42695,7 +42695,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0);
zephir_check_call_status();
if (Z_TYPE_P(&fields) == IS_ARRAY) {
- zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3318);
+ zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3320);
if (Z_TYPE_P(&fields) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _29$$26, _30$$26, _27$$26)
{
@@ -42709,11 +42709,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZVAL_COPY(&field, _27$$26);
ZEPHIR_OBS_NVAR(&value);
zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC);
- zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3310);
+ zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3312);
ZEPHIR_INIT_NVAR(&_32$$27);
ZEPHIR_CONCAT_SVSV(&_32$$27, "[", &_31$$27, "] = ?", &position);
- zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3310);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3311);
+ zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3312);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3313);
if (Z_TYPE_P(&value) == IS_NULL) {
numberNull++;
}
@@ -42733,11 +42733,11 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
zephir_check_call_status();
ZEPHIR_OBS_NVAR(&value);
zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC);
- zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3310);
+ zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3312);
ZEPHIR_INIT_NVAR(&_34$$29);
ZEPHIR_CONCAT_SVSV(&_34$$29, "[", &_33$$29, "] = ?", &position);
- zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3310);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3311);
+ zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3312);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3313);
if (Z_TYPE_P(&value) == IS_NULL) {
numberNull++;
}
@@ -42753,15 +42753,15 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC);
ZEPHIR_INIT_NVAR(&_35$$31);
ZEPHIR_CONCAT_SVS(&_35$$31, "[", &referencedFields, "] = ?0");
- zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3322);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3323);
+ zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3324);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3325);
if (Z_TYPE_P(&value) == IS_NULL) {
validateWithNulls = 1;
}
}
ZEPHIR_OBS_NVAR(&extraConditions);
if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) {
- zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3334);
+ zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3336);
}
if (validateWithNulls) {
ZEPHIR_OBS_NVAR(&allowNulls);
@@ -42853,7 +42853,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseCascade)
ZEPHIR_CPY_WRT(&manager, &_0);
ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr);
zephir_check_call_status();
- zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3460);
+ zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3462);
if (Z_TYPE_P(&relations) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1)
{
@@ -42871,7 +42871,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseCascade)
}
if (_3$$3) {
ZEPHIR_OBS_NVAR(&_4$$5);
- zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3434);
+ zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3436);
action = zephir_get_intval(&_4$$5);
}
if (action != 2) {
@@ -42910,7 +42910,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseCascade)
}
if (_7$$9) {
ZEPHIR_OBS_NVAR(&_8$$11);
- zephir_array_fetch_string(&_8$$11, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3434);
+ zephir_array_fetch_string(&_8$$11, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3436);
action = zephir_get_intval(&_8$$11);
}
if (action != 2) {
@@ -42973,7 +42973,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseRestrict)
ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr);
zephir_check_call_status();
error = 0;
- zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3546);
+ zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3548);
if (Z_TYPE_P(&relations) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1)
{
@@ -42991,7 +42991,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseRestrict)
}
if (_3$$3) {
ZEPHIR_OBS_NVAR(&_4$$5);
- zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3505);
+ zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3507);
action = zephir_get_intval(&_4$$5);
}
if (action != 1) {
@@ -43047,7 +43047,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseRestrict)
}
if (_13$$9) {
ZEPHIR_OBS_NVAR(&_14$$11);
- zephir_array_fetch_string(&_14$$11, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3505);
+ zephir_array_fetch_string(&_14$$11, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3507);
action = zephir_get_intval(&_14$$11);
}
if (action != 1) {
@@ -43218,7 +43218,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_INIT_NVAR(&columnMap);
ZVAL_NULL(&columnMap);
}
- zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3668);
+ zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3670);
if (Z_TYPE_P(&attributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _1)
{
@@ -43233,7 +43233,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_4$$7, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 31, &_4$$7);
zephir_check_call_status();
- zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3602);
+ zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3604);
ZEPHIR_MM_RESTORE();
return;
}
@@ -43249,9 +43249,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
_6$$11 = zephir_array_isset(&defaultValues, &field);
}
if (_6$$11) {
- zephir_array_fetch(&_7$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3619);
+ zephir_array_fetch(&_7$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3621);
zephir_array_update_zval(&snapshot, &attributeField, &_7$$12, PH_COPY | PH_SEPARATE);
- zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3620);
+ zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3622);
zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_8$$12, PH_COPY | PH_SEPARATE);
ZEPHIR_CALL_METHOD(&_9$$12, connection, "supportsdefaultvalue", &_10, 0);
zephir_check_call_status();
@@ -43271,18 +43271,18 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_13$$15, "Column '", &field, "' have not defined a bind data type");
ZEPHIR_CALL_METHOD(NULL, &_12$$15, "__construct", &_5, 31, &_13$$15);
zephir_check_call_status();
- zephir_throw_exception_debug(&_12$$15, "phalcon/Mvc/Model.zep", 3637);
+ zephir_throw_exception_debug(&_12$$15, "phalcon/Mvc/Model.zep", 3639);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3640);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3641);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3642);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3642);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3643);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3644);
} else {
if (zephir_array_isset(&defaultValues, &field)) {
- zephir_array_fetch(&_14$$17, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3645);
+ zephir_array_fetch(&_14$$17, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3647);
zephir_array_update_zval(&snapshot, &attributeField, &_14$$17, PH_COPY | PH_SEPARATE);
- zephir_array_fetch(&_15$$17, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3646);
+ zephir_array_fetch(&_15$$17, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3648);
zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_15$$17, PH_COPY | PH_SEPARATE);
ZEPHIR_CALL_METHOD(&_16$$17, connection, "supportsdefaultvalue", &_17, 0);
zephir_check_call_status();
@@ -43291,13 +43291,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
}
ZEPHIR_CALL_METHOD(&_18$$17, connection, "getdefaultvalue", &_19, 0);
zephir_check_call_status();
- zephir_array_append(&values, &_18$$17, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3652);
+ zephir_array_append(&values, &_18$$17, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3654);
} else {
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3654);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3656);
zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
}
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3658);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3659);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3660);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3661);
}
}
}
@@ -43322,7 +43322,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_21$$22, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_20$$22, "__construct", &_5, 31, &_21$$22);
zephir_check_call_status();
- zephir_throw_exception_debug(&_20$$22, "phalcon/Mvc/Model.zep", 3602);
+ zephir_throw_exception_debug(&_20$$22, "phalcon/Mvc/Model.zep", 3604);
ZEPHIR_MM_RESTORE();
return;
}
@@ -43338,9 +43338,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
_22$$26 = zephir_array_isset(&defaultValues, &field);
}
if (_22$$26) {
- zephir_array_fetch(&_23$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3619);
+ zephir_array_fetch(&_23$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3621);
zephir_array_update_zval(&snapshot, &attributeField, &_23$$27, PH_COPY | PH_SEPARATE);
- zephir_array_fetch(&_24$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3620);
+ zephir_array_fetch(&_24$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3622);
zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_24$$27, PH_COPY | PH_SEPARATE);
ZEPHIR_CALL_METHOD(&_25$$27, connection, "supportsdefaultvalue", &_26, 0);
zephir_check_call_status();
@@ -43360,18 +43360,18 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_29$$30, "Column '", &field, "' have not defined a bind data type");
ZEPHIR_CALL_METHOD(NULL, &_28$$30, "__construct", &_5, 31, &_29$$30);
zephir_check_call_status();
- zephir_throw_exception_debug(&_28$$30, "phalcon/Mvc/Model.zep", 3637);
+ zephir_throw_exception_debug(&_28$$30, "phalcon/Mvc/Model.zep", 3639);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3640);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3641);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3642);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3642);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3643);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3644);
} else {
if (zephir_array_isset(&defaultValues, &field)) {
- zephir_array_fetch(&_30$$32, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3645);
+ zephir_array_fetch(&_30$$32, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3647);
zephir_array_update_zval(&snapshot, &attributeField, &_30$$32, PH_COPY | PH_SEPARATE);
- zephir_array_fetch(&_31$$32, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3646);
+ zephir_array_fetch(&_31$$32, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3648);
zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_31$$32, PH_COPY | PH_SEPARATE);
ZEPHIR_CALL_METHOD(&_32$$32, connection, "supportsdefaultvalue", &_33, 0);
zephir_check_call_status();
@@ -43380,13 +43380,13 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
}
ZEPHIR_CALL_METHOD(&_34$$32, connection, "getdefaultvalue", &_35, 0);
zephir_check_call_status();
- zephir_array_append(&values, &_34$$32, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3652);
+ zephir_array_append(&values, &_34$$32, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3654);
} else {
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3654);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3656);
zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
}
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3658);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3659);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3660);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3661);
}
}
}
@@ -43402,7 +43402,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
zephir_check_call_status();
useExplicitIdentity = zephir_get_boolval(&_36$$35);
if (useExplicitIdentity) {
- zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3678);
+ zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3680);
}
if (Z_TYPE_P(&columnMap) == IS_ARRAY) {
ZEPHIR_OBS_NVAR(&attributeField);
@@ -43413,7 +43413,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_38$$38, "Identity column '", identityField, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_37$$38, "__construct", &_5, 31, &_38$$38);
zephir_check_call_status();
- zephir_throw_exception_debug(&_37$$38, "phalcon/Mvc/Model.zep", 3688);
+ zephir_throw_exception_debug(&_37$$38, "phalcon/Mvc/Model.zep", 3690);
ZEPHIR_MM_RESTORE();
return;
}
@@ -43428,12 +43428,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
}
if (_39$$40) {
if (useExplicitIdentity) {
- zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3700);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3700);
+ zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3702);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3702);
}
} else {
if (!(useExplicitIdentity)) {
- zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3708);
+ zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3710);
}
ZEPHIR_OBS_NVAR(&bindType);
if (UNEXPECTED(!(zephir_array_isset_fetch(&bindType, &bindDataTypes, identityField, 0)))) {
@@ -43443,23 +43443,23 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_41$$45, "Identity column '", identityField, "' isn\'t part of the table columns");
ZEPHIR_CALL_METHOD(NULL, &_40$$45, "__construct", &_5, 31, &_41$$45);
zephir_check_call_status();
- zephir_throw_exception_debug(&_40$$45, "phalcon/Mvc/Model.zep", 3717);
+ zephir_throw_exception_debug(&_40$$45, "phalcon/Mvc/Model.zep", 3719);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3720);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3721);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3722);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3723);
}
} else {
if (useExplicitIdentity) {
- zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3725);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3726);
+ zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3727);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3728);
}
}
}
if (Z_TYPE_P(table) == IS_ARRAY) {
- zephir_array_fetch_long(&_42$$48, table, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3735);
- zephir_array_fetch_long(&_43$$48, table, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3735);
+ zephir_array_fetch_long(&_42$$48, table, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3737);
+ zephir_array_fetch_long(&_43$$48, table, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3737);
ZEPHIR_INIT_VAR(&_44$$48);
ZEPHIR_CONCAT_VSV(&_44$$48, &_42$$48, ".", &_43$$48);
ZEPHIR_CPY_WRT(table, &_44$$48);
@@ -43505,7 +43505,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
zephir_update_property_zval(this_ptr, ZEND_STRL("uniqueParams"), &__$null);
}
if (zephir_is_true(&success)) {
- zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3796);
+ zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3798);
if (Z_TYPE_P(&unsetDefaultValues) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&unsetDefaultValues), _51$$56, _52$$56, _49$$56)
{
@@ -43680,7 +43680,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_INIT_NVAR(&columnMap);
ZVAL_NULL(&columnMap);
}
- zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3982);
+ zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3984);
if (Z_TYPE_P(&nonPrimary) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&nonPrimary), _2)
{
@@ -43696,7 +43696,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_5$$10, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_4$$10, "__construct", &_6, 31, &_5$$10);
zephir_check_call_status();
- zephir_throw_exception_debug(&_4$$10, "phalcon/Mvc/Model.zep", 3860);
+ zephir_throw_exception_debug(&_4$$10, "phalcon/Mvc/Model.zep", 3862);
ZEPHIR_MM_RESTORE();
return;
}
@@ -43713,16 +43713,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_8$$13, "Column '", &field, "' have not defined a bind data type");
ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", &_6, 31, &_8$$13);
zephir_check_call_status();
- zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 3874);
+ zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 3876);
ZEPHIR_MM_RESTORE();
return;
}
ZEPHIR_OBS_NVAR(&value);
if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) {
if (!(useDynamicUpdate)) {
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3886);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3887);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3888);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3888);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3889);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3890);
} else {
ZEPHIR_OBS_NVAR(&snapshotValue);
if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0))) {
@@ -43742,7 +43742,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_10$$23, "Column '", &field, "' have not defined a data type");
ZEPHIR_CALL_METHOD(NULL, &_9$$23, "__construct", &_6, 31, &_10$$23);
zephir_check_call_status();
- zephir_throw_exception_debug(&_9$$23, "phalcon/Mvc/Model.zep", 3913);
+ zephir_throw_exception_debug(&_9$$23, "phalcon/Mvc/Model.zep", 3915);
ZEPHIR_MM_RESTORE();
return;
}
@@ -43790,17 +43790,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
}
}
if (changed) {
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3962);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3963);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3964);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3964);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3966);
}
}
zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
} else {
zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE);
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3972);
- zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3973);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3974);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3974);
+ zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3975);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3976);
}
}
} ZEND_HASH_FOREACH_END();
@@ -43825,7 +43825,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_21$$35, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_20$$35, "__construct", &_6, 31, &_21$$35);
zephir_check_call_status();
- zephir_throw_exception_debug(&_20$$35, "phalcon/Mvc/Model.zep", 3860);
+ zephir_throw_exception_debug(&_20$$35, "phalcon/Mvc/Model.zep", 3862);
ZEPHIR_MM_RESTORE();
return;
}
@@ -43842,16 +43842,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_23$$38, "Column '", &field, "' have not defined a bind data type");
ZEPHIR_CALL_METHOD(NULL, &_22$$38, "__construct", &_6, 31, &_23$$38);
zephir_check_call_status();
- zephir_throw_exception_debug(&_22$$38, "phalcon/Mvc/Model.zep", 3874);
+ zephir_throw_exception_debug(&_22$$38, "phalcon/Mvc/Model.zep", 3876);
ZEPHIR_MM_RESTORE();
return;
}
ZEPHIR_OBS_NVAR(&value);
if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) {
if (!(useDynamicUpdate)) {
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3886);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3887);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3888);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3888);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3889);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3890);
} else {
ZEPHIR_OBS_NVAR(&snapshotValue);
if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0))) {
@@ -43871,7 +43871,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_25$$48, "Column '", &field, "' have not defined a data type");
ZEPHIR_CALL_METHOD(NULL, &_24$$48, "__construct", &_6, 31, &_25$$48);
zephir_check_call_status();
- zephir_throw_exception_debug(&_24$$48, "phalcon/Mvc/Model.zep", 3913);
+ zephir_throw_exception_debug(&_24$$48, "phalcon/Mvc/Model.zep", 3915);
ZEPHIR_MM_RESTORE();
return;
}
@@ -43919,17 +43919,17 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
}
}
if (changed) {
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3962);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3963);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3964);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3964);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3966);
}
}
zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
} else {
zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE);
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3972);
- zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3973);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3974);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3974);
+ zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3975);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3976);
}
}
ZEPHIR_CALL_METHOD(NULL, &nonPrimary, "next", NULL, 0);
@@ -43953,12 +43953,12 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr);
zephir_check_call_status();
if (UNEXPECTED(!(zephir_fast_count_int(&primaryKeys)))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 4006);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 4008);
return;
}
ZEPHIR_INIT_NVAR(&uniqueParams);
array_init(&uniqueParams);
- zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4033);
+ zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4035);
if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _34$$59)
{
@@ -43973,7 +43973,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_37$$63, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_36$$63, "__construct", &_6, 31, &_37$$63);
zephir_check_call_status();
- zephir_throw_exception_debug(&_36$$63, "phalcon/Mvc/Model.zep", 4019);
+ zephir_throw_exception_debug(&_36$$63, "phalcon/Mvc/Model.zep", 4021);
ZEPHIR_MM_RESTORE();
return;
}
@@ -43983,10 +43983,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_OBS_NVAR(&value);
if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) {
zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
- zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4027);
+ zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4029);
} else {
zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE);
- zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4030);
+ zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4032);
}
} ZEND_HASH_FOREACH_END();
} else {
@@ -44009,7 +44009,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_39$$69, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_38$$69, "__construct", &_6, 31, &_39$$69);
zephir_check_call_status();
- zephir_throw_exception_debug(&_38$$69, "phalcon/Mvc/Model.zep", 4019);
+ zephir_throw_exception_debug(&_38$$69, "phalcon/Mvc/Model.zep", 4021);
ZEPHIR_MM_RESTORE();
return;
}
@@ -44019,10 +44019,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_OBS_NVAR(&value);
if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) {
zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
- zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4027);
+ zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4029);
} else {
zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE);
- zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4030);
+ zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4032);
}
ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0);
zephir_check_call_status();
@@ -44031,8 +44031,8 @@ static PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_INIT_NVAR(&field);
}
if (Z_TYPE_P(table) == IS_ARRAY) {
- zephir_array_fetch_long(&_40$$73, table, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4039);
- zephir_array_fetch_long(&_41$$73, table, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4039);
+ zephir_array_fetch_long(&_40$$73, table, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4041);
+ zephir_array_fetch_long(&_41$$73, table, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4041);
ZEPHIR_INIT_VAR(&_42$$73);
ZEPHIR_CONCAT_VSV(&_42$$73, &_40$$73, ".", &_41$$73);
ZEPHIR_CPY_WRT(table, &_42$$73);
@@ -44163,7 +44163,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, has)
array_init(&uniqueParams);
ZEPHIR_INIT_NVAR(&uniqueTypes);
array_init(&uniqueTypes);
- zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4163);
+ zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4165);
if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _1$$3)
{
@@ -44178,7 +44178,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, has)
ZEPHIR_CONCAT_SVS(&_4$$9, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 31, &_4$$9);
zephir_check_call_status();
- zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 4122);
+ zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 4124);
ZEPHIR_MM_RESTORE();
return;
}
@@ -44196,9 +44196,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, has)
if (_6$$11) {
numberEmpty++;
}
- zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4143);
+ zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4145);
} else {
- zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4145);
+ zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4147);
numberEmpty++;
}
ZEPHIR_OBS_NVAR(&type);
@@ -44209,16 +44209,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, has)
ZEPHIR_CONCAT_SVS(&_8$$14, "Column '", &field, "' isn't part of the table columns");
ZEPHIR_CALL_METHOD(NULL, &_7$$14, "__construct", &_5, 31, &_8$$14);
zephir_check_call_status();
- zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 4152);
+ zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 4154);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4155);
+ zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4157);
ZEPHIR_CALL_METHOD(&_9$$7, connection, "escapeidentifier", &_10, 0, &field);
zephir_check_call_status();
ZEPHIR_INIT_NVAR(&_11$$7);
ZEPHIR_CONCAT_VS(&_11$$7, &_9$$7, " = ?");
- zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4156);
+ zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4158);
} ZEND_HASH_FOREACH_END();
} else {
ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "rewind", NULL, 0);
@@ -44240,7 +44240,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, has)
ZEPHIR_CONCAT_SVS(&_13$$17, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", &_5, 31, &_13$$17);
zephir_check_call_status();
- zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 4122);
+ zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 4124);
ZEPHIR_MM_RESTORE();
return;
}
@@ -44258,9 +44258,9 @@ static PHP_METHOD(Phalcon_Mvc_Model, has)
if (_14$$19) {
numberEmpty++;
}
- zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4143);
+ zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4145);
} else {
- zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4145);
+ zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4147);
numberEmpty++;
}
ZEPHIR_OBS_NVAR(&type);
@@ -44271,16 +44271,16 @@ static PHP_METHOD(Phalcon_Mvc_Model, has)
ZEPHIR_CONCAT_SVS(&_16$$22, "Column '", &field, "' isn't part of the table columns");
ZEPHIR_CALL_METHOD(NULL, &_15$$22, "__construct", &_5, 31, &_16$$22);
zephir_check_call_status();
- zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 4152);
+ zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 4154);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4155);
+ zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4157);
ZEPHIR_CALL_METHOD(&_17$$15, connection, "escapeidentifier", &_18, 0, &field);
zephir_check_call_status();
ZEPHIR_INIT_NVAR(&_19$$15);
ZEPHIR_CONCAT_VS(&_19$$15, &_17$$15, " = ?");
- zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4156);
+ zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4158);
ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0);
zephir_check_call_status();
}
@@ -44331,7 +44331,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, has)
ZVAL_NULL(&_25);
ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, &_24, &_25, &uniqueParams, &uniqueTypes);
zephir_check_call_status();
- zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4217);
+ zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4219);
if (zephir_is_true(&_26)) {
ZEPHIR_INIT_ZVAL_NREF(_27$$30);
ZVAL_LONG(&_27$$30, 0);
@@ -44525,7 +44525,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, groupResult)
ZEPHIR_INIT_VAR(¶ms);
array_init(¶ms);
if (Z_TYPE_P(parameters) != IS_NULL) {
- zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4322);
+ zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4324);
}
} else {
ZEPHIR_CPY_WRT(¶ms, parameters);
@@ -44569,10 +44569,10 @@ static PHP_METHOD(Phalcon_Mvc_Model, groupResult)
}
if (zephir_array_isset_string(¶ms, SL("bind"))) {
ZEPHIR_OBS_NVAR(&bindParams);
- zephir_array_fetch_string(&bindParams, ¶ms, SL("bind"), PH_NOISY, "phalcon/Mvc/Model.zep", 4365);
+ zephir_array_fetch_string(&bindParams, ¶ms, SL("bind"), PH_NOISY, "phalcon/Mvc/Model.zep", 4367);
if (zephir_array_isset_string(¶ms, SL("bindTypes"))) {
ZEPHIR_OBS_NVAR(&bindTypes);
- zephir_array_fetch_string(&bindTypes, ¶ms, SL("bindTypes"), PH_NOISY, "phalcon/Mvc/Model.zep", 4368);
+ zephir_array_fetch_string(&bindTypes, ¶ms, SL("bindTypes"), PH_NOISY, "phalcon/Mvc/Model.zep", 4370);
}
}
ZEPHIR_OBS_VAR(&cache);
@@ -44675,7 +44675,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, invokeFinder)
ZEPHIR_CONCAT_SVS(&_4$$7, "The static method '", &method, "' requires one argument");
ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 31, &_4$$7);
zephir_check_call_status();
- zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4447);
+ zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4449);
ZEPHIR_MM_RESTORE();
return;
}
@@ -44707,7 +44707,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, invokeFinder)
ZEPHIR_CONCAT_SVS(&_6$$13, "Cannot resolve attribute '", &extraMethod, "' in the model");
ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", NULL, 31, &_6$$13);
zephir_check_call_status();
- zephir_throw_exception_debug(&_5$$13, "phalcon/Mvc/Model.zep", 4484);
+ zephir_throw_exception_debug(&_5$$13, "phalcon/Mvc/Model.zep", 4486);
ZEPHIR_MM_RESTORE();
return;
}
@@ -44920,7 +44920,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSave)
ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr);
zephir_check_call_status();
error = 0;
- zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4721);
+ zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4723);
if (Z_TYPE_P(¬Null) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(¬Null), _4$$11)
{
@@ -44936,7 +44936,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSave)
ZEPHIR_CONCAT_SVS(&_7$$19, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_6$$19, "__construct", &_8, 31, &_7$$19);
zephir_check_call_status();
- zephir_throw_exception_debug(&_6$$19, "phalcon/Mvc/Model.zep", 4645);
+ zephir_throw_exception_debug(&_6$$19, "phalcon/Mvc/Model.zep", 4647);
ZEPHIR_MM_RESTORE();
return;
}
@@ -44961,7 +44961,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSave)
if (_10$$27) {
_11$$27 = !(zephir_array_isset(&defaultValues, &field));
if (!(_11$$27)) {
- zephir_array_fetch(&_12$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4675);
+ zephir_array_fetch(&_12$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4677);
_11$$27 = !ZEPHIR_IS_IDENTICAL(&value, &_12$$27);
}
_10$$27 = _11$$27;
@@ -45024,7 +45024,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSave)
ZEPHIR_CONCAT_SVS(&_18$$39, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_17$$39, "__construct", &_8, 31, &_18$$39);
zephir_check_call_status();
- zephir_throw_exception_debug(&_17$$39, "phalcon/Mvc/Model.zep", 4645);
+ zephir_throw_exception_debug(&_17$$39, "phalcon/Mvc/Model.zep", 4647);
ZEPHIR_MM_RESTORE();
return;
}
@@ -45049,7 +45049,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSave)
if (_20$$47) {
_21$$47 = !(zephir_array_isset(&defaultValues, &field));
if (!(_21$$47)) {
- zephir_array_fetch(&_22$$47, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4675);
+ zephir_array_fetch(&_22$$47, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4677);
_21$$47 = !ZEPHIR_IS_IDENTICAL(&value, &_22$$47);
}
_20$$47 = _21$$47;
@@ -45247,7 +45247,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0);
zephir_check_call_status();
ZEPHIR_CPY_WRT(&manager, &_1);
- zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4901);
+ zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4903);
if (Z_TYPE_P(related) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _4, _5, _2)
{
@@ -45274,7 +45274,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, &_8$$6);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4842);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4844);
return;
}
ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0);
@@ -45289,7 +45289,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, &_10$$7);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4854);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4856);
return;
}
zephir_read_property(&_12$$5, &record, ZEND_STRL("dirtyState"), PH_NOISY_CC | PH_READONLY);
@@ -45302,7 +45302,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
if (_13$$5) {
ZEPHIR_CALL_METHOD(&_15$$8, &record, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_15$$8, 0, "phalcon/Mvc/Model.zep", 4887);
+ zephir_is_iterable(&_15$$8, 0, "phalcon/Mvc/Model.zep", 4889);
if (Z_TYPE_P(&_15$$8) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_15$$8), _16$$8)
{
@@ -45386,7 +45386,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_27, 0, &_26$$16);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4842);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4844);
return;
}
ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0);
@@ -45401,7 +45401,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_29, 0, &_28$$17);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4854);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4856);
return;
}
zephir_read_property(&_30$$15, &record, ZEND_STRL("dirtyState"), PH_NOISY_CC | PH_READONLY);
@@ -45414,7 +45414,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
if (_31$$15) {
ZEPHIR_CALL_METHOD(&_33$$18, &record, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_33$$18, 0, "phalcon/Mvc/Model.zep", 4887);
+ zephir_is_iterable(&_33$$18, 0, "phalcon/Mvc/Model.zep", 4889);
if (Z_TYPE_P(&_33$$18) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_33$$18), _34$$18)
{
@@ -45662,7 +45662,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0);
zephir_check_call_status();
ZEPHIR_CPY_WRT(&manager, &_0);
- zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 5150);
+ zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 5152);
if (Z_TYPE_P(related) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _3, _4, _1)
{
@@ -45695,7 +45695,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, &_9$$6);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-one-through/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4963);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-one-through/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4965);
return;
}
ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0);
@@ -45712,7 +45712,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_12, 0, &_11$$7);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4973);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4975);
return;
}
if (Z_TYPE_P(&record) == IS_OBJECT) {
@@ -45737,7 +45737,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CONCAT_SVS(&_16$$10, "The column '", &columns, "' needs to be present in the model");
ZEPHIR_CALL_METHOD(NULL, &_15$$10, "__construct", &_17, 31, &_16$$10);
zephir_check_call_status();
- zephir_throw_exception_debug(&_15$$10, "phalcon/Mvc/Model.zep", 4990);
+ zephir_throw_exception_debug(&_15$$10, "phalcon/Mvc/Model.zep", 4992);
ZEPHIR_MM_RESTORE();
return;
}
@@ -45752,7 +45752,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", NULL, 0);
zephir_check_call_status();
}
- zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 5136);
+ zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 5138);
if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _19$$4)
{
@@ -45767,7 +45767,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_21$$12))) {
ZEPHIR_CALL_METHOD(&_22$$14, &recordAfter, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_22$$14, 0, "phalcon/Mvc/Model.zep", 5049);
+ zephir_is_iterable(&_22$$14, 0, "phalcon/Mvc/Model.zep", 5051);
if (Z_TYPE_P(&_22$$14) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_22$$14), _23$$14)
{
@@ -45850,7 +45850,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_36$$19))) {
ZEPHIR_CALL_METHOD(&_37$$22, &intermediateModel, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_37$$22, 0, "phalcon/Mvc/Model.zep", 5130);
+ zephir_is_iterable(&_37$$22, 0, "phalcon/Mvc/Model.zep", 5132);
if (Z_TYPE_P(&_37$$22) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_37$$22), _38$$22)
{
@@ -45922,7 +45922,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_44$$27))) {
ZEPHIR_CALL_METHOD(&_45$$29, &recordAfter, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_45$$29, 0, "phalcon/Mvc/Model.zep", 5049);
+ zephir_is_iterable(&_45$$29, 0, "phalcon/Mvc/Model.zep", 5051);
if (Z_TYPE_P(&_45$$29) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_45$$29), _46$$29)
{
@@ -46005,7 +46005,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_58$$34))) {
ZEPHIR_CALL_METHOD(&_59$$37, &intermediateModel, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_59$$37, 0, "phalcon/Mvc/Model.zep", 5130);
+ zephir_is_iterable(&_59$$37, 0, "phalcon/Mvc/Model.zep", 5132);
if (Z_TYPE_P(&_59$$37) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_59$$37), _60$$37)
{
@@ -46076,7 +46076,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CONCAT_SVSVS(&_69$$43, "There are no defined relations for the model '", &className, "' using alias '", &name, "'");
ZEPHIR_CALL_METHOD(NULL, &_68$$43, "__construct", &_17, 31, &_69$$43);
zephir_check_call_status();
- zephir_throw_exception_debug(&_68$$43, "phalcon/Mvc/Model.zep", 5142);
+ zephir_throw_exception_debug(&_68$$43, "phalcon/Mvc/Model.zep", 5144);
ZEPHIR_MM_RESTORE();
return;
}
@@ -46116,7 +46116,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_75, 0, &_74$$47);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-one-through/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4963);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-one-through/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4965);
return;
}
ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0);
@@ -46133,7 +46133,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_77, 0, &_76$$48);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4973);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4975);
return;
}
if (Z_TYPE_P(&record) == IS_OBJECT) {
@@ -46159,7 +46159,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CONCAT_SVS(&_82$$51, "The column '", &columns, "' needs to be present in the model");
ZEPHIR_CALL_METHOD(NULL, &_81$$51, "__construct", &_17, 31, &_82$$51);
zephir_check_call_status();
- zephir_throw_exception_debug(&_81$$51, "phalcon/Mvc/Model.zep", 4990);
+ zephir_throw_exception_debug(&_81$$51, "phalcon/Mvc/Model.zep", 4992);
ZEPHIR_MM_RESTORE();
return;
}
@@ -46174,7 +46174,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", NULL, 0);
zephir_check_call_status();
}
- zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 5136);
+ zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 5138);
if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _84$$45)
{
@@ -46189,7 +46189,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_86$$53))) {
ZEPHIR_CALL_METHOD(&_87$$55, &recordAfter, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_87$$55, 0, "phalcon/Mvc/Model.zep", 5049);
+ zephir_is_iterable(&_87$$55, 0, "phalcon/Mvc/Model.zep", 5051);
if (Z_TYPE_P(&_87$$55) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_87$$55), _88$$55)
{
@@ -46272,7 +46272,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_100$$60))) {
ZEPHIR_CALL_METHOD(&_101$$63, &intermediateModel, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_101$$63, 0, "phalcon/Mvc/Model.zep", 5130);
+ zephir_is_iterable(&_101$$63, 0, "phalcon/Mvc/Model.zep", 5132);
if (Z_TYPE_P(&_101$$63) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_101$$63), _102$$63)
{
@@ -46344,7 +46344,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_108$$68))) {
ZEPHIR_CALL_METHOD(&_109$$70, &recordAfter, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_109$$70, 0, "phalcon/Mvc/Model.zep", 5049);
+ zephir_is_iterable(&_109$$70, 0, "phalcon/Mvc/Model.zep", 5051);
if (Z_TYPE_P(&_109$$70) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_109$$70), _110$$70)
{
@@ -46427,7 +46427,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_122$$75))) {
ZEPHIR_CALL_METHOD(&_123$$78, &intermediateModel, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_123$$78, 0, "phalcon/Mvc/Model.zep", 5130);
+ zephir_is_iterable(&_123$$78, 0, "phalcon/Mvc/Model.zep", 5132);
if (Z_TYPE_P(&_123$$78) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_123$$78), _124$$78)
{
@@ -46498,7 +46498,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CONCAT_SVSVS(&_133$$84, "There are no defined relations for the model '", &className, "' using alias '", &name, "'");
ZEPHIR_CALL_METHOD(NULL, &_132$$84, "__construct", &_17, 31, &_133$$84);
zephir_check_call_status();
- zephir_throw_exception_debug(&_132$$84, "phalcon/Mvc/Model.zep", 5142);
+ zephir_throw_exception_debug(&_132$$84, "phalcon/Mvc/Model.zep", 5144);
ZEPHIR_MM_RESTORE();
return;
}
@@ -46548,7 +46548,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues)
ZEPHIR_INIT_VAR(&keysAttributes);
array_init(&keysAttributes);
- zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5183);
+ zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5185);
if (Z_TYPE_P(&attributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0)
{
@@ -47143,7 +47143,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate)
ZEPHIR_INIT_VAR(&keysAttributes);
array_init(&keysAttributes);
- zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5642);
+ zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5644);
if (Z_TYPE_P(&attributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0)
{
@@ -47204,7 +47204,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate)
ZEPHIR_INIT_VAR(&keysAttributes);
array_init(&keysAttributes);
- zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5677);
+ zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5679);
if (Z_TYPE_P(&attributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0)
{
@@ -47375,7 +47375,7 @@ static PHP_METHOD(Phalcon_Mvc_Model, caseInsensitiveColumnMap)
ZEPHIR_INIT_VAR(&_0);
zephir_array_keys(&_0, columnMap);
- zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5813);
+ zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5815);
if (Z_TYPE_P(&_0) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1)
{
@@ -109750,7 +109750,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Container_Container)
ZEPHIR_REGISTER_CLASS(Phalcon\\Container, Container, phalcon, container_container, phalcon_container_container_method_entry, 0);
zend_declare_property_null(phalcon_container_container_ce, SL("container"), ZEND_ACC_PROTECTED);
- zend_class_implements(phalcon_container_container_ce, 1, zephir_get_internal_ce(SL("psrext\\container\\containerinterface")));
+ zend_class_implements(phalcon_container_container_ce, 1, zephir_get_internal_ce(SL("psr\\container\\containerinterface")));
return SUCCESS;
}
@@ -120757,7 +120757,7 @@ ZEPHIR_INIT_CLASS(Phalcon_DataMapper_Pdo_Exception_Exception)
ZEPHIR_INIT_CLASS(Phalcon_DataMapper_Pdo_Profiler_MemoryLogger)
{
- ZEPHIR_REGISTER_CLASS_EX(Phalcon\\DataMapper\\Pdo\\Profiler, MemoryLogger, phalcon, datamapper_pdo_profiler_memorylogger, zephir_get_internal_ce(SL("psrext\\log\\abstractlogger")), phalcon_datamapper_pdo_profiler_memorylogger_method_entry, 0);
+ ZEPHIR_REGISTER_CLASS_EX(Phalcon\\DataMapper\\Pdo\\Profiler, MemoryLogger, phalcon, datamapper_pdo_profiler_memorylogger, zephir_get_internal_ce(SL("psr\\log\\abstractlogger")), phalcon_datamapper_pdo_profiler_memorylogger_method_entry, 0);
zend_declare_property_null(phalcon_datamapper_pdo_profiler_memorylogger_ce, SL("messages"), ZEND_ACC_PROTECTED);
phalcon_datamapper_pdo_profiler_memorylogger_ce->create_object = zephir_init_properties_Phalcon_DataMapper_Pdo_Profiler_MemoryLogger;
@@ -133419,7 +133419,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_Request)
{
ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Http\\Message, Request, phalcon, http_message_request, phalcon_http_message_abstractrequest_ce, phalcon_http_message_request_method_entry, ZEND_ACC_FINAL_CLASS);
- zend_class_implements(phalcon_http_message_request_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\requestinterface")));
+ zend_class_implements(phalcon_http_message_request_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\requestinterface")));
return SUCCESS;
}
@@ -133519,7 +133519,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_RequestFactory)
{
ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Message, RequestFactory, phalcon, http_message_requestfactory, phalcon_http_message_requestfactory_method_entry, ZEND_ACC_FINAL_CLASS);
- zend_class_implements(phalcon_http_message_requestfactory_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\requestfactoryinterface")));
+ zend_class_implements(phalcon_http_message_requestfactory_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\requestfactoryinterface")));
return SUCCESS;
}
@@ -133614,7 +133614,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_Response)
zend_declare_property_string(phalcon_http_message_response_ce, SL("reasonPhrase"), "", ZEND_ACC_PROTECTED);
zend_declare_property_long(phalcon_http_message_response_ce, SL("statusCode"), 200, ZEND_ACC_PROTECTED);
- zend_class_implements(phalcon_http_message_response_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\responseinterface")));
+ zend_class_implements(phalcon_http_message_response_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\responseinterface")));
zend_class_implements(phalcon_http_message_response_ce, 1, phalcon_http_message_responsestatuscodeinterface_ce);
return SUCCESS;
}
@@ -134015,7 +134015,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_ResponseFactory)
{
ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Message, ResponseFactory, phalcon, http_message_responsefactory, phalcon_http_message_responsefactory_method_entry, ZEND_ACC_FINAL_CLASS);
- zend_class_implements(phalcon_http_message_responsefactory_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\responsefactoryinterface")));
+ zend_class_implements(phalcon_http_message_responsefactory_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\responsefactoryinterface")));
return SUCCESS;
}
@@ -134280,7 +134280,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_ServerRequest)
zend_declare_property_null(phalcon_http_message_serverrequest_ce, SL("uploadedFiles"), ZEND_ACC_PROTECTED);
phalcon_http_message_serverrequest_ce->create_object = zephir_init_properties_Phalcon_Http_Message_ServerRequest;
- zend_class_implements(phalcon_http_message_serverrequest_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\serverrequestinterface")));
+ zend_class_implements(phalcon_http_message_serverrequest_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\serverrequestinterface")));
return SUCCESS;
}
@@ -134867,7 +134867,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_ServerRequestFactory)
{
ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Message, ServerRequestFactory, phalcon, http_message_serverrequestfactory, phalcon_http_message_serverrequestfactory_method_entry, 0);
- zend_class_implements(phalcon_http_message_serverrequestfactory_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\serverrequestfactoryinterface")));
+ zend_class_implements(phalcon_http_message_serverrequestfactory_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\serverrequestfactoryinterface")));
zend_class_implements(phalcon_http_message_serverrequestfactory_ce, 1, phalcon_http_message_requestmethodinterface_ce);
return SUCCESS;
}
@@ -136246,7 +136246,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_Stream)
zend_declare_property_null(phalcon_http_message_stream_ce, SL("handle"), ZEND_ACC_PROTECTED);
zend_declare_property_null(phalcon_http_message_stream_ce, SL("stream"), ZEND_ACC_PROTECTED);
- zend_class_implements(phalcon_http_message_stream_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\streaminterface")));
+ zend_class_implements(phalcon_http_message_stream_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\streaminterface")));
return SUCCESS;
}
@@ -136984,7 +136984,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_StreamFactory)
{
ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Message, StreamFactory, phalcon, http_message_streamfactory, phalcon_http_message_streamfactory_method_entry, ZEND_ACC_FINAL_CLASS);
- zend_class_implements(phalcon_http_message_streamfactory_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\streamfactoryinterface")));
+ zend_class_implements(phalcon_http_message_streamfactory_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\streamfactoryinterface")));
return SUCCESS;
}
@@ -137160,7 +137160,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_UploadedFile)
zend_declare_property_string(phalcon_http_message_uploadedfile_ce, SL("fileName"), "", ZEND_ACC_PRIVATE);
zend_declare_property_null(phalcon_http_message_uploadedfile_ce, SL("size"), ZEND_ACC_PRIVATE);
zend_declare_property_null(phalcon_http_message_uploadedfile_ce, SL("stream"), ZEND_ACC_PRIVATE);
- zend_class_implements(phalcon_http_message_uploadedfile_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\uploadedfileinterface")));
+ zend_class_implements(phalcon_http_message_uploadedfile_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\uploadedfileinterface")));
return SUCCESS;
}
@@ -137660,7 +137660,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_UploadedFileFactory)
{
ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Message, UploadedFileFactory, phalcon, http_message_uploadedfilefactory, phalcon_http_message_uploadedfilefactory_method_entry, ZEND_ACC_FINAL_CLASS);
- zend_class_implements(phalcon_http_message_uploadedfilefactory_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\uploadedfilefactoryinterface")));
+ zend_class_implements(phalcon_http_message_uploadedfilefactory_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\uploadedfilefactoryinterface")));
return SUCCESS;
}
@@ -137744,7 +137744,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_Uri)
zend_declare_property_string(phalcon_http_message_uri_ce, SL("query"), "", ZEND_ACC_PROTECTED);
zend_declare_property_string(phalcon_http_message_uri_ce, SL("scheme"), "https", ZEND_ACC_PROTECTED);
zend_declare_property_string(phalcon_http_message_uri_ce, SL("user"), "", ZEND_ACC_PROTECTED);
- zend_class_implements(phalcon_http_message_uri_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\uriinterface")));
+ zend_class_implements(phalcon_http_message_uri_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\uriinterface")));
return SUCCESS;
}
@@ -138938,7 +138938,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Message_UriFactory)
{
ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Message, UriFactory, phalcon, http_message_urifactory, phalcon_http_message_urifactory_method_entry, ZEND_ACC_FINAL_CLASS);
- zend_class_implements(phalcon_http_message_urifactory_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\message\\urifactoryinterface")));
+ zend_class_implements(phalcon_http_message_urifactory_ce, 1, zephir_get_internal_ce(SL("psr\\http\\message\\urifactoryinterface")));
return SUCCESS;
}
@@ -140724,7 +140724,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Server_AbstractMiddleware)
{
ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Server, AbstractMiddleware, phalcon, http_server_abstractmiddleware, phalcon_http_server_abstractmiddleware_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS);
- zend_class_implements(phalcon_http_server_abstractmiddleware_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\server\\middlewareinterface")));
+ zend_class_implements(phalcon_http_server_abstractmiddleware_ce, 1, zephir_get_internal_ce(SL("psr\\http\\server\\middlewareinterface")));
return SUCCESS;
}
@@ -140746,7 +140746,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Http_Server_AbstractRequestHandler)
{
ZEPHIR_REGISTER_CLASS(Phalcon\\Http\\Server, AbstractRequestHandler, phalcon, http_server_abstractrequesthandler, phalcon_http_server_abstractrequesthandler_method_entry, ZEND_ACC_EXPLICIT_ABSTRACT_CLASS);
- zend_class_implements(phalcon_http_server_abstractrequesthandler_ce, 1, zephir_get_internal_ce(SL("psrext\\http\\server\\requesthandlerinterface")));
+ zend_class_implements(phalcon_http_server_abstractrequesthandler_ce, 1, zephir_get_internal_ce(SL("psr\\http\\server\\requesthandlerinterface")));
return SUCCESS;
}
@@ -214679,7 +214679,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Logger_Logger)
zephir_declare_class_constant_long(phalcon_logger_logger_ce, SL("WARNING"), 4);
- zend_class_implements(phalcon_logger_logger_ce, 1, zephir_get_internal_ce(SL("psrext\\log\\loggerinterface")));
+ zend_class_implements(phalcon_logger_logger_ce, 1, zephir_get_internal_ce(SL("psr\\log\\loggerinterface")));
return SUCCESS;
}
@@ -221594,7 +221594,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Cache_Cache)
ZEPHIR_REGISTER_CLASS(Phalcon\\Cache, Cache, phalcon, cache_cache, phalcon_cache_cache_method_entry, 0);
zend_declare_property_null(phalcon_cache_cache_ce, SL("adapter"), ZEND_ACC_PROTECTED);
- zend_class_implements(phalcon_cache_cache_ce, 1, zephir_get_internal_ce(SL("psrext\\simplecache\\cacheinterface")));
+ zend_class_implements(phalcon_cache_cache_ce, 1, zephir_get_internal_ce(SL("psr\\simplecache\\cacheinterface")));
return SUCCESS;
}
@@ -222247,7 +222247,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Cache_Exception_Exception)
{
ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cache\\Exception, Exception, phalcon, cache_exception_exception, zend_ce_exception, NULL, 0);
- zend_class_implements(phalcon_cache_exception_exception_ce, 1, zephir_get_internal_ce(SL("psrext\\simplecache\\cacheexception")));
+ zend_class_implements(phalcon_cache_exception_exception_ce, 1, zephir_get_internal_ce(SL("psr\\simplecache\\cacheexception")));
return SUCCESS;
}
@@ -222265,7 +222265,7 @@ ZEPHIR_INIT_CLASS(Phalcon_Cache_Exception_InvalidArgumentException)
{
ZEPHIR_REGISTER_CLASS_EX(Phalcon\\Cache\\Exception, InvalidArgumentException, phalcon, cache_exception_invalidargumentexception, zend_ce_exception, NULL, 0);
- zend_class_implements(phalcon_cache_exception_invalidargumentexception_ce, 1, zephir_get_internal_ce(SL("psrext\\simplecache\\invalidargumentexception")));
+ zend_class_implements(phalcon_cache_exception_invalidargumentexception_ce, 1, zephir_get_internal_ce(SL("psr\\simplecache\\invalidargumentexception")));
return SUCCESS;
}
diff --git a/build/phalcon/phalcon.zep.h b/build/phalcon/phalcon.zep.h
index c27047d2e4b..0814c7d9ca9 100644
--- a/build/phalcon/phalcon.zep.h
+++ b/build/phalcon/phalcon.zep.h
@@ -11478,13 +11478,13 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_getcompiledpattern, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_gethostname, 0, 0, IS_STRING, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_gethostname, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_gethttpmethods, 0, 0, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_getname, 0, 0, IS_STRING, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_getname, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_getpaths, 0, 0, IS_ARRAY, 0)
@@ -25421,7 +25421,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_find, 0, 0, Pha
ZEND_ARG_INFO(0, parameters)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_findfirst, 0, 0, Phalcon\\Mvc\\ModelInterface, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_findfirst, 0, 0, 0)
ZEND_ARG_INFO(0, parameters)
ZEND_END_ARG_INFO()
@@ -28744,13 +28744,13 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_route_gethttpmethods, 0, 0, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_gethostname, 0, 0, IS_STRING, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_gethostname, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_route_getmatch, 0, 0, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_getname, 0, 0, IS_STRING, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_getname, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_getpaths, 0, 0, IS_ARRAY, 0)
diff --git a/ext/phalcon/mvc/model.zep.c b/ext/phalcon/mvc/model.zep.c
index 831919d820b..7c4f771c6eb 100644
--- a/ext/phalcon/mvc/model.zep.c
+++ b/ext/phalcon/mvc/model.zep.c
@@ -2668,6 +2668,8 @@ PHP_METHOD(Phalcon_Mvc_Model, find)
* ],
* 'hydration' => null
* ]
+ *
+ * @return \Phalcon\Mvc\ModelInterface|\Phalcon\Mvc\Model\Row|null
*/
PHP_METHOD(Phalcon_Mvc_Model, findFirst)
{
@@ -2716,7 +2718,7 @@ PHP_METHOD(Phalcon_Mvc_Model, findFirst)
zephir_array_fast_append(&_1$$5, parameters);
ZEPHIR_CPY_WRT(¶ms, &_1$$5);
} else {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1634);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Parameters passed must be of type array, string, numeric or null", "phalcon/Mvc/Model.zep", 1636);
return;
}
ZVAL_LONG(&_3, 1);
@@ -2867,7 +2869,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields)
zephir_read_property(&_0, this_ptr, ZEND_STRL("snapshot"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_CPY_WRT(&snapshot, &_0);
if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'keepSnapshots' option must be enabled to track changes", "phalcon/Mvc/Model.zep", 1720);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'keepSnapshots' option must be enabled to track changes", "phalcon/Mvc/Model.zep", 1722);
return;
}
ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0);
@@ -2883,7 +2885,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields)
ZEPHIR_INIT_VAR(&changed);
array_init(&changed);
ZEPHIR_INIT_VAR(&_1);
- zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1778);
+ zephir_is_iterable(&allAttributes, 0, "phalcon/Mvc/Model.zep", 1780);
if (Z_TYPE_P(&allAttributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&allAttributes), _4, _5, _2)
{
@@ -2896,17 +2898,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields)
ZEPHIR_INIT_NVAR(&_1);
ZVAL_COPY(&_1, _2);
if (!(zephir_array_isset(&snapshot, &name))) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1753);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1755);
continue;
}
ZEPHIR_OBS_NVAR(&value);
if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1763);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1765);
continue;
}
- zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1771);
+ zephir_array_fetch(&_6$$6, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1773);
if (!ZEPHIR_IS_IDENTICAL(&value, &_6$$6)) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1772);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1774);
continue;
}
} ZEND_HASH_FOREACH_END();
@@ -2924,17 +2926,17 @@ PHP_METHOD(Phalcon_Mvc_Model, getChangedFields)
ZEPHIR_CALL_METHOD(&_1, &allAttributes, "current", NULL, 0);
zephir_check_call_status();
if (!(zephir_array_isset(&snapshot, &name))) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1753);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1755);
continue;
}
ZEPHIR_OBS_NVAR(&value);
if (!(zephir_fetch_property_zval(&value, this_ptr, &name, PH_SILENT_CC))) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1763);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1765);
continue;
}
- zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1771);
+ zephir_array_fetch(&_7$$10, &snapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 1773);
if (!ZEPHIR_IS_IDENTICAL(&value, &_7$$10)) {
- zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1772);
+ zephir_array_append(&changed, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1774);
continue;
}
ZEPHIR_CALL_METHOD(NULL, &allAttributes, "next", NULL, 0);
@@ -3045,7 +3047,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages)
ZEPHIR_INIT_VAR(&filtered);
array_init(&filtered);
zephir_read_property(&_1$$3, this_ptr, ZEND_STRL("errorMessages"), PH_NOISY_CC | PH_READONLY);
- zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1835);
+ zephir_is_iterable(&_1$$3, 0, "phalcon/Mvc/Model.zep", 1837);
if (Z_TYPE_P(&_1$$3) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_1$$3), _2$$3)
{
@@ -3054,7 +3056,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages)
ZEPHIR_CALL_METHOD(&_4$$4, &message, "getfield", NULL, 0);
zephir_check_call_status();
if (ZEPHIR_IS_EQUAL(&_4$$4, filter)) {
- zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1831);
+ zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1833);
}
} ZEND_HASH_FOREACH_END();
} else {
@@ -3071,7 +3073,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getMessages)
ZEPHIR_CALL_METHOD(&_5$$6, &message, "getfield", NULL, 0);
zephir_check_call_status();
if (ZEPHIR_IS_EQUAL(&_5$$6, filter)) {
- zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1831);
+ zephir_array_append(&filtered, &message, PH_SEPARATE, "phalcon/Mvc/Model.zep", 1833);
}
ZEPHIR_CALL_METHOD(NULL, &_1$$3, "next", NULL, 0);
zephir_check_call_status();
@@ -3125,7 +3127,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getModelsMetaData)
zephir_check_call_status();
ZEPHIR_CPY_WRT(&metaData, &_1$$3);
if (UNEXPECTED(Z_TYPE_P(&metaData) != IS_OBJECT)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1869);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsMetadata' is not valid", "phalcon/Mvc/Model.zep", 1871);
return;
}
zephir_update_property_zval(this_ptr, ZEND_STRL("modelsMetaData"), &metaData);
@@ -3270,7 +3272,7 @@ PHP_METHOD(Phalcon_Mvc_Model, getRelated)
ZEPHIR_CONCAT_SVSVS(&_3$$3, "There is no defined relations for the model '", &className, "' using alias '", &alias, "'");
ZEPHIR_CALL_METHOD(NULL, &_2$$3, "__construct", NULL, 31, &_3$$3);
zephir_check_call_status();
- zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1948);
+ zephir_throw_exception_debug(&_2$$3, "phalcon/Mvc/Model.zep", 1950);
ZEPHIR_MM_RESTORE();
return;
}
@@ -3433,21 +3435,21 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields)
zephir_read_property(&_0, this_ptr, ZEND_STRL("oldSnapshot"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_CPY_WRT(&oldSnapshot, &_0);
if (UNEXPECTED(!(ZEPHIR_GLOBAL(orm).update_snapshot_on_save))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'updateSnapshotOnSave' option must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 2072);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'updateSnapshotOnSave' option must be enabled for this method to work properly", "phalcon/Mvc/Model.zep", 2074);
return;
}
if (UNEXPECTED(Z_TYPE_P(&snapshot) != IS_ARRAY)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'keepSnapshots' option must be enabled to track changes", "phalcon/Mvc/Model.zep", 2078);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The 'keepSnapshots' option must be enabled to track changes", "phalcon/Mvc/Model.zep", 2080);
return;
}
zephir_read_property(&_0, this_ptr, ZEND_STRL("dirtyState"), PH_NOISY_CC | PH_READONLY);
if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 2087);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Change checking cannot be performed because the object has not been persisted or is deleted", "phalcon/Mvc/Model.zep", 2089);
return;
}
ZEPHIR_INIT_VAR(&updated);
array_init(&updated);
- zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 2102);
+ zephir_is_iterable(&snapshot, 0, "phalcon/Mvc/Model.zep", 2104);
if (Z_TYPE_P(&snapshot) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&snapshot), _3, _4, _1)
{
@@ -3461,11 +3463,11 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields)
ZVAL_COPY(&value, _1);
_5$$6 = !(zephir_array_isset(&oldSnapshot, &name));
if (!(_5$$6)) {
- zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2097);
+ zephir_array_fetch(&_6$$6, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2099);
_5$$6 = !ZEPHIR_IS_IDENTICAL(&value, &_6$$6);
}
if (_5$$6) {
- zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2098);
+ zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2100);
}
} ZEND_HASH_FOREACH_END();
} else {
@@ -3483,11 +3485,11 @@ PHP_METHOD(Phalcon_Mvc_Model, getUpdatedFields)
zephir_check_call_status();
_7$$8 = !(zephir_array_isset(&oldSnapshot, &name));
if (!(_7$$8)) {
- zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2097);
+ zephir_array_fetch(&_8$$8, &oldSnapshot, &name, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 2099);
_7$$8 = !ZEPHIR_IS_IDENTICAL(&value, &_8$$8);
}
if (_7$$8) {
- zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2098);
+ zephir_array_append(&updated, &name, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2100);
}
ZEPHIR_CALL_METHOD(NULL, &snapshot, "next", NULL, 0);
zephir_check_call_status();
@@ -4001,7 +4003,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh)
zephir_read_property(&_0, this_ptr, ZEND_STRL("dirtyState"), PH_NOISY_CC | PH_READONLY);
if (UNEXPECTED(!ZEPHIR_IS_LONG(&_0, 0))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2357);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2359);
return;
}
ZEPHIR_CALL_METHOD(&metaData, this_ptr, "getmodelsmetadata", NULL, 0);
@@ -4028,7 +4030,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh)
ZEPHIR_CALL_METHOD(&_2$$6, this_ptr, "has", NULL, 0, &metaData, &readConnection);
zephir_check_call_status();
if (UNEXPECTED(!zephir_is_true(&_2$$6))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2382);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2384);
return;
}
zephir_read_property(&_3$$6, this_ptr, ZEND_STRL("uniqueKey"), PH_NOISY_CC | PH_READONLY);
@@ -4037,14 +4039,14 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh)
zephir_read_property(&_1, this_ptr, ZEND_STRL("uniqueParams"), PH_NOISY_CC | PH_READONLY);
ZEPHIR_CPY_WRT(&uniqueParams, &_1);
if (UNEXPECTED(Z_TYPE_P(&uniqueParams) != IS_ARRAY)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2393);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The record cannot be refreshed because it does not exist or is deleted", "phalcon/Mvc/Model.zep", 2395);
return;
}
ZEPHIR_INIT_VAR(&fields);
array_init(&fields);
ZEPHIR_CALL_METHOD(&_4, &metaData, "getattributes", NULL, 0, this_ptr);
zephir_check_call_status();
- zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2408);
+ zephir_is_iterable(&_4, 0, "phalcon/Mvc/Model.zep", 2410);
if (Z_TYPE_P(&_4) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_4), _5)
{
@@ -4053,7 +4055,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh)
ZEPHIR_INIT_NVAR(&_7$$9);
zephir_create_array(&_7$$9, 1, 0);
zephir_array_fast_append(&_7$$9, &attribute);
- zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2402);
+ zephir_array_append(&fields, &_7$$9, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2404);
} ZEND_HASH_FOREACH_END();
} else {
ZEPHIR_CALL_METHOD(NULL, &_4, "rewind", NULL, 0);
@@ -4069,7 +4071,7 @@ PHP_METHOD(Phalcon_Mvc_Model, refresh)
ZEPHIR_INIT_NVAR(&_8$$10);
zephir_create_array(&_8$$10, 1, 0);
zephir_array_fast_append(&_8$$10, &attribute);
- zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2402);
+ zephir_array_append(&fields, &_8$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 2404);
ZEPHIR_CALL_METHOD(NULL, &_4, "next", NULL, 0);
zephir_check_call_status();
}
@@ -4232,7 +4234,7 @@ PHP_METHOD(Phalcon_Mvc_Model, save)
zephir_check_call_status();
ZEPHIR_CALL_METHOD(NULL, &_6$$11, "__construct", NULL, 511, this_ptr, &_7$$11);
zephir_check_call_status();
- zephir_throw_exception_debug(&_6$$11, "phalcon/Mvc/Model.zep", 2559);
+ zephir_throw_exception_debug(&_6$$11, "phalcon/Mvc/Model.zep", 2561);
ZEPHIR_MM_RESTORE();
return;
}
@@ -4393,7 +4395,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize)
ZEPHIR_CALL_CE_STATIC(&container, phalcon_di_di_ce, "getdefault", &_1, 0);
zephir_check_call_status();
if (UNEXPECTED(Z_TYPE_P(&container) != IS_OBJECT)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injection container is required to access the services related to the ODM", "phalcon/Mvc/Model.zep", 2679);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A dependency injection container is required to access the services related to the ODM", "phalcon/Mvc/Model.zep", 2681);
return;
}
zephir_update_property_zval(this_ptr, ZEND_STRL("container"), &container);
@@ -4403,7 +4405,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize)
zephir_check_call_status();
ZEPHIR_CPY_WRT(&manager, &_2$$3);
if (UNEXPECTED(Z_TYPE_P(&manager) != IS_OBJECT)) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2695);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "The injected service 'modelsManager' is not valid", "phalcon/Mvc/Model.zep", 2697);
return;
}
zephir_update_property_zval(this_ptr, ZEND_STRL("modelsManager"), &manager);
@@ -4411,7 +4413,7 @@ PHP_METHOD(Phalcon_Mvc_Model, unserialize)
zephir_check_call_status();
ZEPHIR_OBS_VAR(&properties);
if (zephir_array_isset_string_fetch(&properties, &attributes, SL("attributes"), 0)) {
- zephir_is_iterable(&properties, 0, "phalcon/Mvc/Model.zep", 2718);
+ zephir_is_iterable(&properties, 0, "phalcon/Mvc/Model.zep", 2720);
if (Z_TYPE_P(&properties) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&properties), _6$$7, _7$$7, _4$$7)
{
@@ -4661,7 +4663,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
if (Z_TYPE_P(columnMap) == IS_ARRAY) {
ZEPHIR_INIT_VAR(&snapshot);
array_init(&snapshot);
- zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2836);
+ zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2838);
if (Z_TYPE_P(&data) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3)
{
@@ -4685,7 +4687,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
ZEPHIR_CONCAT_SVS(&_5$$7, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_4$$7, "__construct", &_6, 31, &_5$$7);
zephir_check_call_status();
- zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2816);
+ zephir_throw_exception_debug(&_4$$7, "phalcon/Mvc/Model.zep", 2818);
ZEPHIR_MM_RESTORE();
return;
}
@@ -4701,7 +4703,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
ZEPHIR_CONCAT_SVS(&_8$$10, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_7$$10, "__construct", &_6, 31, &_8$$10);
zephir_check_call_status();
- zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2827);
+ zephir_throw_exception_debug(&_7$$10, "phalcon/Mvc/Model.zep", 2829);
ZEPHIR_MM_RESTORE();
return;
}
@@ -4735,7 +4737,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
ZEPHIR_CONCAT_SVS(&_10$$14, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_9$$14, "__construct", &_6, 31, &_10$$14);
zephir_check_call_status();
- zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2816);
+ zephir_throw_exception_debug(&_9$$14, "phalcon/Mvc/Model.zep", 2818);
ZEPHIR_MM_RESTORE();
return;
}
@@ -4751,7 +4753,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setOldSnapshotData)
ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_6, 31, &_12$$17);
zephir_check_call_status();
- zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2827);
+ zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 2829);
ZEPHIR_MM_RESTORE();
return;
}
@@ -4831,7 +4833,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
if (Z_TYPE_P(columnMap) == IS_ARRAY) {
ZEPHIR_INIT_VAR(&snapshot);
array_init(&snapshot);
- zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2901);
+ zephir_is_iterable(&data, 0, "phalcon/Mvc/Model.zep", 2903);
if (Z_TYPE_P(&data) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&data), _2$$3, _3$$3, _0$$3)
{
@@ -4864,7 +4866,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
ZEPHIR_CONCAT_SVS(&_8$$8, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_7$$8, "__construct", &_9, 31, &_8$$8);
zephir_check_call_status();
- zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2881);
+ zephir_throw_exception_debug(&_7$$8, "phalcon/Mvc/Model.zep", 2883);
ZEPHIR_MM_RESTORE();
return;
}
@@ -4880,7 +4882,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
ZEPHIR_CONCAT_SVS(&_11$$11, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_10$$11, "__construct", &_9, 31, &_11$$11);
zephir_check_call_status();
- zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2892);
+ zephir_throw_exception_debug(&_10$$11, "phalcon/Mvc/Model.zep", 2894);
ZEPHIR_MM_RESTORE();
return;
}
@@ -4923,7 +4925,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
ZEPHIR_CONCAT_SVS(&_15$$16, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_14$$16, "__construct", &_9, 31, &_15$$16);
zephir_check_call_status();
- zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2881);
+ zephir_throw_exception_debug(&_14$$16, "phalcon/Mvc/Model.zep", 2883);
ZEPHIR_MM_RESTORE();
return;
}
@@ -4939,7 +4941,7 @@ PHP_METHOD(Phalcon_Mvc_Model, setSnapshotData)
ZEPHIR_CONCAT_SVS(&_17$$19, "Column '", &key, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_16$$19, "__construct", &_9, 31, &_17$$19);
zephir_check_call_status();
- zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2892);
+ zephir_throw_exception_debug(&_16$$19, "phalcon/Mvc/Model.zep", 2894);
ZEPHIR_MM_RESTORE();
return;
}
@@ -5319,7 +5321,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray)
zephir_check_call_status();
ZEPHIR_CALL_METHOD(&_0, &metaData, "getattributes", NULL, 0, this_ptr);
zephir_check_call_status();
- zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 3173);
+ zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 3175);
if (Z_TYPE_P(&_0) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1)
{
@@ -5344,7 +5346,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray)
ZEPHIR_CONCAT_SVS(&_7$$7, "Column '", &attribute, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_6$$7, "__construct", &_8, 31, &_7$$7);
zephir_check_call_status();
- zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 3151);
+ zephir_throw_exception_debug(&_6$$7, "phalcon/Mvc/Model.zep", 3153);
ZEPHIR_MM_RESTORE();
return;
}
@@ -5395,7 +5397,7 @@ PHP_METHOD(Phalcon_Mvc_Model, toArray)
ZEPHIR_CONCAT_SVS(&_12$$17, "Column '", &attribute, "' doesn't make part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_11$$17, "__construct", &_8, 31, &_12$$17);
zephir_check_call_status();
- zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 3151);
+ zephir_throw_exception_debug(&_11$$17, "phalcon/Mvc/Model.zep", 3153);
ZEPHIR_MM_RESTORE();
return;
}
@@ -5602,7 +5604,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZEPHIR_CALL_METHOD(&belongsTo, &manager, "getbelongsto", NULL, 0, this_ptr);
zephir_check_call_status();
error = 0;
- zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3384);
+ zephir_is_iterable(&belongsTo, 0, "phalcon/Mvc/Model.zep", 3386);
if (Z_TYPE_P(&belongsTo) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&belongsTo), _1)
{
@@ -5617,7 +5619,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
action = 1;
if (zephir_array_isset_string(&foreignKey, SL("action"))) {
ZEPHIR_OBS_NVAR(&_3$$5);
- zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3275);
+ zephir_array_fetch_string(&_3$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3277);
action = zephir_get_intval(&_3$$5);
}
if (action != 1) {
@@ -5637,7 +5639,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0);
zephir_check_call_status();
if (Z_TYPE_P(&fields) == IS_ARRAY) {
- zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3318);
+ zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3320);
if (Z_TYPE_P(&fields) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _8$$7, _9$$7, _6$$7)
{
@@ -5651,11 +5653,11 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZVAL_COPY(&field, _6$$7);
ZEPHIR_OBS_NVAR(&value);
zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC);
- zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3310);
+ zephir_array_fetch(&_10$$8, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3312);
ZEPHIR_INIT_NVAR(&_11$$8);
ZEPHIR_CONCAT_SVSV(&_11$$8, "[", &_10$$8, "] = ?", &position);
- zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3310);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3311);
+ zephir_array_append(&conditions, &_11$$8, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3312);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3313);
if (Z_TYPE_P(&value) == IS_NULL) {
numberNull++;
}
@@ -5675,11 +5677,11 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
zephir_check_call_status();
ZEPHIR_OBS_NVAR(&value);
zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC);
- zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3310);
+ zephir_array_fetch(&_12$$10, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3312);
ZEPHIR_INIT_NVAR(&_13$$10);
ZEPHIR_CONCAT_SVSV(&_13$$10, "[", &_12$$10, "] = ?", &position);
- zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3310);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3311);
+ zephir_array_append(&conditions, &_13$$10, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3312);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3313);
if (Z_TYPE_P(&value) == IS_NULL) {
numberNull++;
}
@@ -5695,15 +5697,15 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC);
ZEPHIR_INIT_NVAR(&_14$$12);
ZEPHIR_CONCAT_SVS(&_14$$12, "[", &referencedFields, "] = ?0");
- zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3322);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3323);
+ zephir_array_append(&conditions, &_14$$12, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3324);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3325);
if (Z_TYPE_P(&value) == IS_NULL) {
validateWithNulls = 1;
}
}
ZEPHIR_OBS_NVAR(&extraConditions);
if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) {
- zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3334);
+ zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3336);
}
if (validateWithNulls) {
ZEPHIR_OBS_NVAR(&allowNulls);
@@ -5769,7 +5771,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
action = 1;
if (zephir_array_isset_string(&foreignKey, SL("action"))) {
ZEPHIR_OBS_NVAR(&_24$$24);
- zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3275);
+ zephir_array_fetch_string(&_24$$24, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3277);
action = zephir_get_intval(&_24$$24);
}
if (action != 1) {
@@ -5789,7 +5791,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZEPHIR_CALL_METHOD(&referencedFields, &relation, "getreferencedfields", NULL, 0);
zephir_check_call_status();
if (Z_TYPE_P(&fields) == IS_ARRAY) {
- zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3318);
+ zephir_is_iterable(&fields, 0, "phalcon/Mvc/Model.zep", 3320);
if (Z_TYPE_P(&fields) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&fields), _29$$26, _30$$26, _27$$26)
{
@@ -5803,11 +5805,11 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
ZVAL_COPY(&field, _27$$26);
ZEPHIR_OBS_NVAR(&value);
zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC);
- zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3310);
+ zephir_array_fetch(&_31$$27, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3312);
ZEPHIR_INIT_NVAR(&_32$$27);
ZEPHIR_CONCAT_SVSV(&_32$$27, "[", &_31$$27, "] = ?", &position);
- zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3310);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3311);
+ zephir_array_append(&conditions, &_32$$27, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3312);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3313);
if (Z_TYPE_P(&value) == IS_NULL) {
numberNull++;
}
@@ -5827,11 +5829,11 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
zephir_check_call_status();
ZEPHIR_OBS_NVAR(&value);
zephir_fetch_property_zval(&value, this_ptr, &field, PH_SILENT_CC);
- zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3310);
+ zephir_array_fetch(&_33$$29, &referencedFields, &position, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3312);
ZEPHIR_INIT_NVAR(&_34$$29);
ZEPHIR_CONCAT_SVSV(&_34$$29, "[", &_33$$29, "] = ?", &position);
- zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3310);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3311);
+ zephir_array_append(&conditions, &_34$$29, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3312);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3313);
if (Z_TYPE_P(&value) == IS_NULL) {
numberNull++;
}
@@ -5847,15 +5849,15 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysRestrict)
zephir_fetch_property_zval(&value, this_ptr, &fields, PH_SILENT_CC);
ZEPHIR_INIT_NVAR(&_35$$31);
ZEPHIR_CONCAT_SVS(&_35$$31, "[", &referencedFields, "] = ?0");
- zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3322);
- zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3323);
+ zephir_array_append(&conditions, &_35$$31, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3324);
+ zephir_array_append(&bindParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3325);
if (Z_TYPE_P(&value) == IS_NULL) {
validateWithNulls = 1;
}
}
ZEPHIR_OBS_NVAR(&extraConditions);
if (zephir_array_isset_string_fetch(&extraConditions, &foreignKey, SL("conditions"), 0)) {
- zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3334);
+ zephir_array_append(&conditions, &extraConditions, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3336);
}
if (validateWithNulls) {
ZEPHIR_OBS_NVAR(&allowNulls);
@@ -5951,7 +5953,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseCascade)
ZEPHIR_CPY_WRT(&manager, &_0);
ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr);
zephir_check_call_status();
- zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3460);
+ zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3462);
if (Z_TYPE_P(&relations) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1)
{
@@ -5969,7 +5971,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseCascade)
}
if (_3$$3) {
ZEPHIR_OBS_NVAR(&_4$$5);
- zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3434);
+ zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3436);
action = zephir_get_intval(&_4$$5);
}
if (action != 2) {
@@ -6008,7 +6010,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseCascade)
}
if (_7$$9) {
ZEPHIR_OBS_NVAR(&_8$$11);
- zephir_array_fetch_string(&_8$$11, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3434);
+ zephir_array_fetch_string(&_8$$11, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3436);
action = zephir_get_intval(&_8$$11);
}
if (action != 2) {
@@ -6075,7 +6077,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseRestrict)
ZEPHIR_CALL_METHOD(&relations, &manager, "gethasoneandhasmany", NULL, 0, this_ptr);
zephir_check_call_status();
error = 0;
- zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3546);
+ zephir_is_iterable(&relations, 0, "phalcon/Mvc/Model.zep", 3548);
if (Z_TYPE_P(&relations) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relations), _1)
{
@@ -6093,7 +6095,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseRestrict)
}
if (_3$$3) {
ZEPHIR_OBS_NVAR(&_4$$5);
- zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3505);
+ zephir_array_fetch_string(&_4$$5, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3507);
action = zephir_get_intval(&_4$$5);
}
if (action != 1) {
@@ -6149,7 +6151,7 @@ PHP_METHOD(Phalcon_Mvc_Model, checkForeignKeysReverseRestrict)
}
if (_13$$9) {
ZEPHIR_OBS_NVAR(&_14$$11);
- zephir_array_fetch_string(&_14$$11, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3505);
+ zephir_array_fetch_string(&_14$$11, &foreignKey, SL("action"), PH_NOISY, "phalcon/Mvc/Model.zep", 3507);
action = zephir_get_intval(&_14$$11);
}
if (action != 1) {
@@ -6326,7 +6328,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_INIT_NVAR(&columnMap);
ZVAL_NULL(&columnMap);
}
- zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3668);
+ zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 3670);
if (Z_TYPE_P(&attributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _1)
{
@@ -6341,7 +6343,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_4$$7, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", &_5, 31, &_4$$7);
zephir_check_call_status();
- zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3602);
+ zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 3604);
ZEPHIR_MM_RESTORE();
return;
}
@@ -6357,9 +6359,9 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
_6$$11 = zephir_array_isset(&defaultValues, &field);
}
if (_6$$11) {
- zephir_array_fetch(&_7$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3619);
+ zephir_array_fetch(&_7$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3621);
zephir_array_update_zval(&snapshot, &attributeField, &_7$$12, PH_COPY | PH_SEPARATE);
- zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3620);
+ zephir_array_fetch(&_8$$12, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3622);
zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_8$$12, PH_COPY | PH_SEPARATE);
ZEPHIR_CALL_METHOD(&_9$$12, connection, "supportsdefaultvalue", &_10, 0);
zephir_check_call_status();
@@ -6379,18 +6381,18 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_13$$15, "Column '", &field, "' have not defined a bind data type");
ZEPHIR_CALL_METHOD(NULL, &_12$$15, "__construct", &_5, 31, &_13$$15);
zephir_check_call_status();
- zephir_throw_exception_debug(&_12$$15, "phalcon/Mvc/Model.zep", 3637);
+ zephir_throw_exception_debug(&_12$$15, "phalcon/Mvc/Model.zep", 3639);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3640);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3641);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3642);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3642);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3643);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3644);
} else {
if (zephir_array_isset(&defaultValues, &field)) {
- zephir_array_fetch(&_14$$17, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3645);
+ zephir_array_fetch(&_14$$17, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3647);
zephir_array_update_zval(&snapshot, &attributeField, &_14$$17, PH_COPY | PH_SEPARATE);
- zephir_array_fetch(&_15$$17, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3646);
+ zephir_array_fetch(&_15$$17, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3648);
zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_15$$17, PH_COPY | PH_SEPARATE);
ZEPHIR_CALL_METHOD(&_16$$17, connection, "supportsdefaultvalue", &_17, 0);
zephir_check_call_status();
@@ -6399,13 +6401,13 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
}
ZEPHIR_CALL_METHOD(&_18$$17, connection, "getdefaultvalue", &_19, 0);
zephir_check_call_status();
- zephir_array_append(&values, &_18$$17, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3652);
+ zephir_array_append(&values, &_18$$17, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3654);
} else {
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3654);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3656);
zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
}
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3658);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3659);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3660);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3661);
}
}
}
@@ -6430,7 +6432,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_21$$22, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_20$$22, "__construct", &_5, 31, &_21$$22);
zephir_check_call_status();
- zephir_throw_exception_debug(&_20$$22, "phalcon/Mvc/Model.zep", 3602);
+ zephir_throw_exception_debug(&_20$$22, "phalcon/Mvc/Model.zep", 3604);
ZEPHIR_MM_RESTORE();
return;
}
@@ -6446,9 +6448,9 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
_22$$26 = zephir_array_isset(&defaultValues, &field);
}
if (_22$$26) {
- zephir_array_fetch(&_23$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3619);
+ zephir_array_fetch(&_23$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3621);
zephir_array_update_zval(&snapshot, &attributeField, &_23$$27, PH_COPY | PH_SEPARATE);
- zephir_array_fetch(&_24$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3620);
+ zephir_array_fetch(&_24$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3622);
zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_24$$27, PH_COPY | PH_SEPARATE);
ZEPHIR_CALL_METHOD(&_25$$27, connection, "supportsdefaultvalue", &_26, 0);
zephir_check_call_status();
@@ -6468,18 +6470,18 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_29$$30, "Column '", &field, "' have not defined a bind data type");
ZEPHIR_CALL_METHOD(NULL, &_28$$30, "__construct", &_5, 31, &_29$$30);
zephir_check_call_status();
- zephir_throw_exception_debug(&_28$$30, "phalcon/Mvc/Model.zep", 3637);
+ zephir_throw_exception_debug(&_28$$30, "phalcon/Mvc/Model.zep", 3639);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3640);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3641);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3642);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3642);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3643);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3644);
} else {
if (zephir_array_isset(&defaultValues, &field)) {
- zephir_array_fetch(&_30$$32, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3645);
+ zephir_array_fetch(&_30$$32, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3647);
zephir_array_update_zval(&snapshot, &attributeField, &_30$$32, PH_COPY | PH_SEPARATE);
- zephir_array_fetch(&_31$$32, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3646);
+ zephir_array_fetch(&_31$$32, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3648);
zephir_array_update_zval(&unsetDefaultValues, &attributeField, &_31$$32, PH_COPY | PH_SEPARATE);
ZEPHIR_CALL_METHOD(&_32$$32, connection, "supportsdefaultvalue", &_33, 0);
zephir_check_call_status();
@@ -6488,13 +6490,13 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
}
ZEPHIR_CALL_METHOD(&_34$$32, connection, "getdefaultvalue", &_35, 0);
zephir_check_call_status();
- zephir_array_append(&values, &_34$$32, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3652);
+ zephir_array_append(&values, &_34$$32, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3654);
} else {
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3654);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3656);
zephir_array_update_zval(&snapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
}
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3658);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3659);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3660);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3661);
}
}
}
@@ -6510,7 +6512,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
zephir_check_call_status();
useExplicitIdentity = zephir_get_boolval(&_36$$35);
if (useExplicitIdentity) {
- zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3678);
+ zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3680);
}
if (Z_TYPE_P(&columnMap) == IS_ARRAY) {
ZEPHIR_OBS_NVAR(&attributeField);
@@ -6521,7 +6523,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_38$$38, "Identity column '", identityField, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_37$$38, "__construct", &_5, 31, &_38$$38);
zephir_check_call_status();
- zephir_throw_exception_debug(&_37$$38, "phalcon/Mvc/Model.zep", 3688);
+ zephir_throw_exception_debug(&_37$$38, "phalcon/Mvc/Model.zep", 3690);
ZEPHIR_MM_RESTORE();
return;
}
@@ -6536,12 +6538,12 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
}
if (_39$$40) {
if (useExplicitIdentity) {
- zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3700);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3700);
+ zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3702);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3702);
}
} else {
if (!(useExplicitIdentity)) {
- zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3708);
+ zephir_array_append(&fields, identityField, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3710);
}
ZEPHIR_OBS_NVAR(&bindType);
if (UNEXPECTED(!(zephir_array_isset_fetch(&bindType, &bindDataTypes, identityField, 0)))) {
@@ -6551,23 +6553,23 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
ZEPHIR_CONCAT_SVS(&_41$$45, "Identity column '", identityField, "' isn\'t part of the table columns");
ZEPHIR_CALL_METHOD(NULL, &_40$$45, "__construct", &_5, 31, &_41$$45);
zephir_check_call_status();
- zephir_throw_exception_debug(&_40$$45, "phalcon/Mvc/Model.zep", 3717);
+ zephir_throw_exception_debug(&_40$$45, "phalcon/Mvc/Model.zep", 3719);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3720);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3721);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3722);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3723);
}
} else {
if (useExplicitIdentity) {
- zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3725);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3726);
+ zephir_array_append(&values, &defaultValue, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3727);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3728);
}
}
}
if (Z_TYPE_P(table) == IS_ARRAY) {
- zephir_array_fetch_long(&_42$$48, table, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3735);
- zephir_array_fetch_long(&_43$$48, table, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3735);
+ zephir_array_fetch_long(&_42$$48, table, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3737);
+ zephir_array_fetch_long(&_43$$48, table, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 3737);
ZEPHIR_INIT_VAR(&_44$$48);
ZEPHIR_CONCAT_VSV(&_44$$48, &_42$$48, ".", &_43$$48);
ZEPHIR_CPY_WRT(table, &_44$$48);
@@ -6613,7 +6615,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowInsert)
zephir_update_property_zval(this_ptr, ZEND_STRL("uniqueParams"), &__$null);
}
if (zephir_is_true(&success)) {
- zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3796);
+ zephir_is_iterable(&unsetDefaultValues, 0, "phalcon/Mvc/Model.zep", 3798);
if (Z_TYPE_P(&unsetDefaultValues) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(&unsetDefaultValues), _51$$56, _52$$56, _49$$56)
{
@@ -6793,7 +6795,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_INIT_NVAR(&columnMap);
ZVAL_NULL(&columnMap);
}
- zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3982);
+ zephir_is_iterable(&nonPrimary, 0, "phalcon/Mvc/Model.zep", 3984);
if (Z_TYPE_P(&nonPrimary) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&nonPrimary), _2)
{
@@ -6809,7 +6811,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_5$$10, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_4$$10, "__construct", &_6, 31, &_5$$10);
zephir_check_call_status();
- zephir_throw_exception_debug(&_4$$10, "phalcon/Mvc/Model.zep", 3860);
+ zephir_throw_exception_debug(&_4$$10, "phalcon/Mvc/Model.zep", 3862);
ZEPHIR_MM_RESTORE();
return;
}
@@ -6826,16 +6828,16 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_8$$13, "Column '", &field, "' have not defined a bind data type");
ZEPHIR_CALL_METHOD(NULL, &_7$$13, "__construct", &_6, 31, &_8$$13);
zephir_check_call_status();
- zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 3874);
+ zephir_throw_exception_debug(&_7$$13, "phalcon/Mvc/Model.zep", 3876);
ZEPHIR_MM_RESTORE();
return;
}
ZEPHIR_OBS_NVAR(&value);
if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) {
if (!(useDynamicUpdate)) {
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3886);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3887);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3888);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3888);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3889);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3890);
} else {
ZEPHIR_OBS_NVAR(&snapshotValue);
if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0))) {
@@ -6855,7 +6857,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_10$$23, "Column '", &field, "' have not defined a data type");
ZEPHIR_CALL_METHOD(NULL, &_9$$23, "__construct", &_6, 31, &_10$$23);
zephir_check_call_status();
- zephir_throw_exception_debug(&_9$$23, "phalcon/Mvc/Model.zep", 3913);
+ zephir_throw_exception_debug(&_9$$23, "phalcon/Mvc/Model.zep", 3915);
ZEPHIR_MM_RESTORE();
return;
}
@@ -6903,17 +6905,17 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
}
}
if (changed) {
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3962);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3963);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3964);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3964);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3966);
}
}
zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
} else {
zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE);
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3972);
- zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3973);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3974);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3974);
+ zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3975);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3976);
}
}
} ZEND_HASH_FOREACH_END();
@@ -6938,7 +6940,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_21$$35, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_20$$35, "__construct", &_6, 31, &_21$$35);
zephir_check_call_status();
- zephir_throw_exception_debug(&_20$$35, "phalcon/Mvc/Model.zep", 3860);
+ zephir_throw_exception_debug(&_20$$35, "phalcon/Mvc/Model.zep", 3862);
ZEPHIR_MM_RESTORE();
return;
}
@@ -6955,16 +6957,16 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_23$$38, "Column '", &field, "' have not defined a bind data type");
ZEPHIR_CALL_METHOD(NULL, &_22$$38, "__construct", &_6, 31, &_23$$38);
zephir_check_call_status();
- zephir_throw_exception_debug(&_22$$38, "phalcon/Mvc/Model.zep", 3874);
+ zephir_throw_exception_debug(&_22$$38, "phalcon/Mvc/Model.zep", 3876);
ZEPHIR_MM_RESTORE();
return;
}
ZEPHIR_OBS_NVAR(&value);
if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) {
if (!(useDynamicUpdate)) {
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3886);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3887);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3888);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3888);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3889);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3890);
} else {
ZEPHIR_OBS_NVAR(&snapshotValue);
if (!(zephir_array_isset_fetch(&snapshotValue, &snapshot, &attributeField, 0))) {
@@ -6984,7 +6986,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_25$$48, "Column '", &field, "' have not defined a data type");
ZEPHIR_CALL_METHOD(NULL, &_24$$48, "__construct", &_6, 31, &_25$$48);
zephir_check_call_status();
- zephir_throw_exception_debug(&_24$$48, "phalcon/Mvc/Model.zep", 3913);
+ zephir_throw_exception_debug(&_24$$48, "phalcon/Mvc/Model.zep", 3915);
ZEPHIR_MM_RESTORE();
return;
}
@@ -7032,17 +7034,17 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
}
}
if (changed) {
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3962);
- zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3963);
- zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3964);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3964);
+ zephir_array_append(&values, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3965);
+ zephir_array_append(&bindTypes, &bindType, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3966);
}
}
zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
} else {
zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE);
- zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3972);
- zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3973);
- zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3974);
+ zephir_array_append(&fields, &field, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3974);
+ zephir_array_append(&values, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3975);
+ zephir_array_append(&bindTypes, &bindSkip, PH_SEPARATE, "phalcon/Mvc/Model.zep", 3976);
}
}
ZEPHIR_CALL_METHOD(NULL, &nonPrimary, "next", NULL, 0);
@@ -7066,12 +7068,12 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CALL_METHOD(&primaryKeys, metaData, "getprimarykeyattributes", NULL, 0, this_ptr);
zephir_check_call_status();
if (UNEXPECTED(!(zephir_fast_count_int(&primaryKeys)))) {
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 4006);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "A primary key must be defined in the model in order to perform the operation", "phalcon/Mvc/Model.zep", 4008);
return;
}
ZEPHIR_INIT_NVAR(&uniqueParams);
array_init(&uniqueParams);
- zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4033);
+ zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4035);
if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _34$$59)
{
@@ -7086,7 +7088,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_37$$63, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_36$$63, "__construct", &_6, 31, &_37$$63);
zephir_check_call_status();
- zephir_throw_exception_debug(&_36$$63, "phalcon/Mvc/Model.zep", 4019);
+ zephir_throw_exception_debug(&_36$$63, "phalcon/Mvc/Model.zep", 4021);
ZEPHIR_MM_RESTORE();
return;
}
@@ -7096,10 +7098,10 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_OBS_NVAR(&value);
if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) {
zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
- zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4027);
+ zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4029);
} else {
zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE);
- zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4030);
+ zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4032);
}
} ZEND_HASH_FOREACH_END();
} else {
@@ -7122,7 +7124,7 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_CONCAT_SVS(&_39$$69, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_38$$69, "__construct", &_6, 31, &_39$$69);
zephir_check_call_status();
- zephir_throw_exception_debug(&_38$$69, "phalcon/Mvc/Model.zep", 4019);
+ zephir_throw_exception_debug(&_38$$69, "phalcon/Mvc/Model.zep", 4021);
ZEPHIR_MM_RESTORE();
return;
}
@@ -7132,10 +7134,10 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_OBS_NVAR(&value);
if (zephir_fetch_property_zval(&value, this_ptr, &attributeField, PH_SILENT_CC)) {
zephir_array_update_zval(&newSnapshot, &attributeField, &value, PH_COPY | PH_SEPARATE);
- zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4027);
+ zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4029);
} else {
zephir_array_update_zval(&newSnapshot, &attributeField, &__$null, PH_COPY | PH_SEPARATE);
- zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4030);
+ zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4032);
}
ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0);
zephir_check_call_status();
@@ -7144,8 +7146,8 @@ PHP_METHOD(Phalcon_Mvc_Model, doLowUpdate)
ZEPHIR_INIT_NVAR(&field);
}
if (Z_TYPE_P(table) == IS_ARRAY) {
- zephir_array_fetch_long(&_40$$73, table, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4039);
- zephir_array_fetch_long(&_41$$73, table, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4039);
+ zephir_array_fetch_long(&_40$$73, table, 0, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4041);
+ zephir_array_fetch_long(&_41$$73, table, 1, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4041);
ZEPHIR_INIT_VAR(&_42$$73);
ZEPHIR_CONCAT_VSV(&_42$$73, &_40$$73, ".", &_41$$73);
ZEPHIR_CPY_WRT(table, &_42$$73);
@@ -7281,7 +7283,7 @@ PHP_METHOD(Phalcon_Mvc_Model, has)
array_init(&uniqueParams);
ZEPHIR_INIT_NVAR(&uniqueTypes);
array_init(&uniqueTypes);
- zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4163);
+ zephir_is_iterable(&primaryKeys, 0, "phalcon/Mvc/Model.zep", 4165);
if (Z_TYPE_P(&primaryKeys) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&primaryKeys), _1$$3)
{
@@ -7296,7 +7298,7 @@ PHP_METHOD(Phalcon_Mvc_Model, has)
ZEPHIR_CONCAT_SVS(&_4$$9, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_3$$9, "__construct", &_5, 31, &_4$$9);
zephir_check_call_status();
- zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 4122);
+ zephir_throw_exception_debug(&_3$$9, "phalcon/Mvc/Model.zep", 4124);
ZEPHIR_MM_RESTORE();
return;
}
@@ -7314,9 +7316,9 @@ PHP_METHOD(Phalcon_Mvc_Model, has)
if (_6$$11) {
numberEmpty++;
}
- zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4143);
+ zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4145);
} else {
- zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4145);
+ zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4147);
numberEmpty++;
}
ZEPHIR_OBS_NVAR(&type);
@@ -7327,16 +7329,16 @@ PHP_METHOD(Phalcon_Mvc_Model, has)
ZEPHIR_CONCAT_SVS(&_8$$14, "Column '", &field, "' isn't part of the table columns");
ZEPHIR_CALL_METHOD(NULL, &_7$$14, "__construct", &_5, 31, &_8$$14);
zephir_check_call_status();
- zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 4152);
+ zephir_throw_exception_debug(&_7$$14, "phalcon/Mvc/Model.zep", 4154);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4155);
+ zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4157);
ZEPHIR_CALL_METHOD(&_9$$7, connection, "escapeidentifier", &_10, 0, &field);
zephir_check_call_status();
ZEPHIR_INIT_NVAR(&_11$$7);
ZEPHIR_CONCAT_VS(&_11$$7, &_9$$7, " = ?");
- zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4156);
+ zephir_array_append(&wherePk, &_11$$7, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4158);
} ZEND_HASH_FOREACH_END();
} else {
ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "rewind", NULL, 0);
@@ -7358,7 +7360,7 @@ PHP_METHOD(Phalcon_Mvc_Model, has)
ZEPHIR_CONCAT_SVS(&_13$$17, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_12$$17, "__construct", &_5, 31, &_13$$17);
zephir_check_call_status();
- zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 4122);
+ zephir_throw_exception_debug(&_12$$17, "phalcon/Mvc/Model.zep", 4124);
ZEPHIR_MM_RESTORE();
return;
}
@@ -7376,9 +7378,9 @@ PHP_METHOD(Phalcon_Mvc_Model, has)
if (_14$$19) {
numberEmpty++;
}
- zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4143);
+ zephir_array_append(&uniqueParams, &value, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4145);
} else {
- zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4145);
+ zephir_array_append(&uniqueParams, &__$null, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4147);
numberEmpty++;
}
ZEPHIR_OBS_NVAR(&type);
@@ -7389,16 +7391,16 @@ PHP_METHOD(Phalcon_Mvc_Model, has)
ZEPHIR_CONCAT_SVS(&_16$$22, "Column '", &field, "' isn't part of the table columns");
ZEPHIR_CALL_METHOD(NULL, &_15$$22, "__construct", &_5, 31, &_16$$22);
zephir_check_call_status();
- zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 4152);
+ zephir_throw_exception_debug(&_15$$22, "phalcon/Mvc/Model.zep", 4154);
ZEPHIR_MM_RESTORE();
return;
}
- zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4155);
+ zephir_array_append(&uniqueTypes, &type, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4157);
ZEPHIR_CALL_METHOD(&_17$$15, connection, "escapeidentifier", &_18, 0, &field);
zephir_check_call_status();
ZEPHIR_INIT_NVAR(&_19$$15);
ZEPHIR_CONCAT_VS(&_19$$15, &_17$$15, " = ?");
- zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4156);
+ zephir_array_append(&wherePk, &_19$$15, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4158);
ZEPHIR_CALL_METHOD(NULL, &primaryKeys, "next", NULL, 0);
zephir_check_call_status();
}
@@ -7449,7 +7451,7 @@ PHP_METHOD(Phalcon_Mvc_Model, has)
ZVAL_NULL(&_25);
ZEPHIR_CALL_METHOD(&num, connection, "fetchone", NULL, 0, &_24, &_25, &uniqueParams, &uniqueTypes);
zephir_check_call_status();
- zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4217);
+ zephir_array_fetch_string(&_26, &num, SL("rowcount"), PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4219);
if (zephir_is_true(&_26)) {
ZEPHIR_INIT_ZVAL_NREF(_27$$30);
ZVAL_LONG(&_27$$30, 0);
@@ -7662,7 +7664,7 @@ PHP_METHOD(Phalcon_Mvc_Model, groupResult)
ZEPHIR_INIT_VAR(¶ms);
array_init(¶ms);
if (Z_TYPE_P(parameters) != IS_NULL) {
- zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4322);
+ zephir_array_append(¶ms, parameters, PH_SEPARATE, "phalcon/Mvc/Model.zep", 4324);
}
} else {
ZEPHIR_CPY_WRT(¶ms, parameters);
@@ -7706,10 +7708,10 @@ PHP_METHOD(Phalcon_Mvc_Model, groupResult)
}
if (zephir_array_isset_string(¶ms, SL("bind"))) {
ZEPHIR_OBS_NVAR(&bindParams);
- zephir_array_fetch_string(&bindParams, ¶ms, SL("bind"), PH_NOISY, "phalcon/Mvc/Model.zep", 4365);
+ zephir_array_fetch_string(&bindParams, ¶ms, SL("bind"), PH_NOISY, "phalcon/Mvc/Model.zep", 4367);
if (zephir_array_isset_string(¶ms, SL("bindTypes"))) {
ZEPHIR_OBS_NVAR(&bindTypes);
- zephir_array_fetch_string(&bindTypes, ¶ms, SL("bindTypes"), PH_NOISY, "phalcon/Mvc/Model.zep", 4368);
+ zephir_array_fetch_string(&bindTypes, ¶ms, SL("bindTypes"), PH_NOISY, "phalcon/Mvc/Model.zep", 4370);
}
}
ZEPHIR_OBS_VAR(&cache);
@@ -7817,7 +7819,7 @@ PHP_METHOD(Phalcon_Mvc_Model, invokeFinder)
ZEPHIR_CONCAT_SVS(&_4$$7, "The static method '", &method, "' requires one argument");
ZEPHIR_CALL_METHOD(NULL, &_3$$7, "__construct", NULL, 31, &_4$$7);
zephir_check_call_status();
- zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4447);
+ zephir_throw_exception_debug(&_3$$7, "phalcon/Mvc/Model.zep", 4449);
ZEPHIR_MM_RESTORE();
return;
}
@@ -7849,7 +7851,7 @@ PHP_METHOD(Phalcon_Mvc_Model, invokeFinder)
ZEPHIR_CONCAT_SVS(&_6$$13, "Cannot resolve attribute '", &extraMethod, "' in the model");
ZEPHIR_CALL_METHOD(NULL, &_5$$13, "__construct", NULL, 31, &_6$$13);
zephir_check_call_status();
- zephir_throw_exception_debug(&_5$$13, "phalcon/Mvc/Model.zep", 4484);
+ zephir_throw_exception_debug(&_5$$13, "phalcon/Mvc/Model.zep", 4486);
ZEPHIR_MM_RESTORE();
return;
}
@@ -8070,7 +8072,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSave)
ZEPHIR_CALL_METHOD(&emptyStringValues, metaData, "getemptystringattributes", NULL, 0, this_ptr);
zephir_check_call_status();
error = 0;
- zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4721);
+ zephir_is_iterable(¬Null, 0, "phalcon/Mvc/Model.zep", 4723);
if (Z_TYPE_P(¬Null) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(¬Null), _4$$11)
{
@@ -8086,7 +8088,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSave)
ZEPHIR_CONCAT_SVS(&_7$$19, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_6$$19, "__construct", &_8, 31, &_7$$19);
zephir_check_call_status();
- zephir_throw_exception_debug(&_6$$19, "phalcon/Mvc/Model.zep", 4645);
+ zephir_throw_exception_debug(&_6$$19, "phalcon/Mvc/Model.zep", 4647);
ZEPHIR_MM_RESTORE();
return;
}
@@ -8111,7 +8113,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSave)
if (_10$$27) {
_11$$27 = !(zephir_array_isset(&defaultValues, &field));
if (!(_11$$27)) {
- zephir_array_fetch(&_12$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4675);
+ zephir_array_fetch(&_12$$27, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4677);
_11$$27 = !ZEPHIR_IS_IDENTICAL(&value, &_12$$27);
}
_10$$27 = _11$$27;
@@ -8174,7 +8176,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSave)
ZEPHIR_CONCAT_SVS(&_18$$39, "Column '", &field, "' isn't part of the column map");
ZEPHIR_CALL_METHOD(NULL, &_17$$39, "__construct", &_8, 31, &_18$$39);
zephir_check_call_status();
- zephir_throw_exception_debug(&_17$$39, "phalcon/Mvc/Model.zep", 4645);
+ zephir_throw_exception_debug(&_17$$39, "phalcon/Mvc/Model.zep", 4647);
ZEPHIR_MM_RESTORE();
return;
}
@@ -8199,7 +8201,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSave)
if (_20$$47) {
_21$$47 = !(zephir_array_isset(&defaultValues, &field));
if (!(_21$$47)) {
- zephir_array_fetch(&_22$$47, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4675);
+ zephir_array_fetch(&_22$$47, &defaultValues, &field, PH_NOISY | PH_READONLY, "phalcon/Mvc/Model.zep", 4677);
_21$$47 = !ZEPHIR_IS_IDENTICAL(&value, &_22$$47);
}
_20$$47 = _21$$47;
@@ -8403,7 +8405,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
ZEPHIR_CALL_METHOD(&_1, this_ptr, "getmodelsmanager", NULL, 0);
zephir_check_call_status();
ZEPHIR_CPY_WRT(&manager, &_1);
- zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4901);
+ zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 4903);
if (Z_TYPE_P(related) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _4, _5, _2)
{
@@ -8430,7 +8432,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_9, 0, &_8$$6);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4842);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4844);
return;
}
ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0);
@@ -8445,7 +8447,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_11, 0, &_10$$7);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4854);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4856);
return;
}
zephir_read_property(&_12$$5, &record, ZEND_STRL("dirtyState"), PH_NOISY_CC | PH_READONLY);
@@ -8458,7 +8460,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
if (_13$$5) {
ZEPHIR_CALL_METHOD(&_15$$8, &record, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_15$$8, 0, "phalcon/Mvc/Model.zep", 4887);
+ zephir_is_iterable(&_15$$8, 0, "phalcon/Mvc/Model.zep", 4889);
if (Z_TYPE_P(&_15$$8) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_15$$8), _16$$8)
{
@@ -8542,7 +8544,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_27, 0, &_26$$16);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4842);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects can be stored as part of belongs-to relations", "phalcon/Mvc/Model.zep", 4844);
return;
}
ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0);
@@ -8557,7 +8559,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_29, 0, &_28$$17);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4854);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4856);
return;
}
zephir_read_property(&_30$$15, &record, ZEND_STRL("dirtyState"), PH_NOISY_CC | PH_READONLY);
@@ -8570,7 +8572,7 @@ PHP_METHOD(Phalcon_Mvc_Model, preSaveRelatedRecords)
if (_31$$15) {
ZEPHIR_CALL_METHOD(&_33$$18, &record, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_33$$18, 0, "phalcon/Mvc/Model.zep", 4887);
+ zephir_is_iterable(&_33$$18, 0, "phalcon/Mvc/Model.zep", 4889);
if (Z_TYPE_P(&_33$$18) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_33$$18), _34$$18)
{
@@ -8829,7 +8831,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CALL_METHOD(&_0, this_ptr, "getmodelsmanager", NULL, 0);
zephir_check_call_status();
ZEPHIR_CPY_WRT(&manager, &_0);
- zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 5150);
+ zephir_is_iterable(related, 0, "phalcon/Mvc/Model.zep", 5152);
if (Z_TYPE_P(related) == IS_ARRAY) {
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(related), _3, _4, _1)
{
@@ -8862,7 +8864,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_10, 0, &_9$$6);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-one-through/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4963);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-one-through/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4965);
return;
}
ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0);
@@ -8879,7 +8881,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_12, 0, &_11$$7);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4973);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4975);
return;
}
if (Z_TYPE_P(&record) == IS_OBJECT) {
@@ -8904,7 +8906,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CONCAT_SVS(&_16$$10, "The column '", &columns, "' needs to be present in the model");
ZEPHIR_CALL_METHOD(NULL, &_15$$10, "__construct", &_17, 31, &_16$$10);
zephir_check_call_status();
- zephir_throw_exception_debug(&_15$$10, "phalcon/Mvc/Model.zep", 4990);
+ zephir_throw_exception_debug(&_15$$10, "phalcon/Mvc/Model.zep", 4992);
ZEPHIR_MM_RESTORE();
return;
}
@@ -8919,7 +8921,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", NULL, 0);
zephir_check_call_status();
}
- zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 5136);
+ zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 5138);
if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _19$$4)
{
@@ -8934,7 +8936,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_21$$12))) {
ZEPHIR_CALL_METHOD(&_22$$14, &recordAfter, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_22$$14, 0, "phalcon/Mvc/Model.zep", 5049);
+ zephir_is_iterable(&_22$$14, 0, "phalcon/Mvc/Model.zep", 5051);
if (Z_TYPE_P(&_22$$14) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_22$$14), _23$$14)
{
@@ -9017,7 +9019,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_36$$19))) {
ZEPHIR_CALL_METHOD(&_37$$22, &intermediateModel, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_37$$22, 0, "phalcon/Mvc/Model.zep", 5130);
+ zephir_is_iterable(&_37$$22, 0, "phalcon/Mvc/Model.zep", 5132);
if (Z_TYPE_P(&_37$$22) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_37$$22), _38$$22)
{
@@ -9089,7 +9091,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_44$$27))) {
ZEPHIR_CALL_METHOD(&_45$$29, &recordAfter, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_45$$29, 0, "phalcon/Mvc/Model.zep", 5049);
+ zephir_is_iterable(&_45$$29, 0, "phalcon/Mvc/Model.zep", 5051);
if (Z_TYPE_P(&_45$$29) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_45$$29), _46$$29)
{
@@ -9172,7 +9174,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_58$$34))) {
ZEPHIR_CALL_METHOD(&_59$$37, &intermediateModel, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_59$$37, 0, "phalcon/Mvc/Model.zep", 5130);
+ zephir_is_iterable(&_59$$37, 0, "phalcon/Mvc/Model.zep", 5132);
if (Z_TYPE_P(&_59$$37) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_59$$37), _60$$37)
{
@@ -9243,7 +9245,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CONCAT_SVSVS(&_69$$43, "There are no defined relations for the model '", &className, "' using alias '", &name, "'");
ZEPHIR_CALL_METHOD(NULL, &_68$$43, "__construct", &_17, 31, &_69$$43);
zephir_check_call_status();
- zephir_throw_exception_debug(&_68$$43, "phalcon/Mvc/Model.zep", 5142);
+ zephir_throw_exception_debug(&_68$$43, "phalcon/Mvc/Model.zep", 5144);
ZEPHIR_MM_RESTORE();
return;
}
@@ -9283,7 +9285,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_75, 0, &_74$$47);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-one-through/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4963);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Only objects/arrays can be stored as part of has-many/has-one/has-one-through/has-many-to-many relations", "phalcon/Mvc/Model.zep", 4965);
return;
}
ZEPHIR_CALL_METHOD(&columns, &relation, "getfields", NULL, 0);
@@ -9300,7 +9302,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
}
ZEPHIR_CALL_METHOD(NULL, connection, "rollback", &_77, 0, &_76$$48);
zephir_check_call_status();
- ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4973);
+ ZEPHIR_THROW_EXCEPTION_DEBUG_STR(phalcon_mvc_model_exception_ce, "Not implemented", "phalcon/Mvc/Model.zep", 4975);
return;
}
if (Z_TYPE_P(&record) == IS_OBJECT) {
@@ -9326,7 +9328,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CONCAT_SVS(&_82$$51, "The column '", &columns, "' needs to be present in the model");
ZEPHIR_CALL_METHOD(NULL, &_81$$51, "__construct", &_17, 31, &_82$$51);
zephir_check_call_status();
- zephir_throw_exception_debug(&_81$$51, "phalcon/Mvc/Model.zep", 4990);
+ zephir_throw_exception_debug(&_81$$51, "phalcon/Mvc/Model.zep", 4992);
ZEPHIR_MM_RESTORE();
return;
}
@@ -9341,7 +9343,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CALL_METHOD(&intermediateReferencedFields, &relation, "getintermediatereferencedfields", NULL, 0);
zephir_check_call_status();
}
- zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 5136);
+ zephir_is_iterable(&relatedRecords, 0, "phalcon/Mvc/Model.zep", 5138);
if (Z_TYPE_P(&relatedRecords) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&relatedRecords), _84$$45)
{
@@ -9356,7 +9358,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_86$$53))) {
ZEPHIR_CALL_METHOD(&_87$$55, &recordAfter, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_87$$55, 0, "phalcon/Mvc/Model.zep", 5049);
+ zephir_is_iterable(&_87$$55, 0, "phalcon/Mvc/Model.zep", 5051);
if (Z_TYPE_P(&_87$$55) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_87$$55), _88$$55)
{
@@ -9439,7 +9441,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_100$$60))) {
ZEPHIR_CALL_METHOD(&_101$$63, &intermediateModel, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_101$$63, 0, "phalcon/Mvc/Model.zep", 5130);
+ zephir_is_iterable(&_101$$63, 0, "phalcon/Mvc/Model.zep", 5132);
if (Z_TYPE_P(&_101$$63) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_101$$63), _102$$63)
{
@@ -9511,7 +9513,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_108$$68))) {
ZEPHIR_CALL_METHOD(&_109$$70, &recordAfter, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_109$$70, 0, "phalcon/Mvc/Model.zep", 5049);
+ zephir_is_iterable(&_109$$70, 0, "phalcon/Mvc/Model.zep", 5051);
if (Z_TYPE_P(&_109$$70) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_109$$70), _110$$70)
{
@@ -9594,7 +9596,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
if (!(zephir_is_true(&_122$$75))) {
ZEPHIR_CALL_METHOD(&_123$$78, &intermediateModel, "getmessages", NULL, 0);
zephir_check_call_status();
- zephir_is_iterable(&_123$$78, 0, "phalcon/Mvc/Model.zep", 5130);
+ zephir_is_iterable(&_123$$78, 0, "phalcon/Mvc/Model.zep", 5132);
if (Z_TYPE_P(&_123$$78) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_123$$78), _124$$78)
{
@@ -9665,7 +9667,7 @@ PHP_METHOD(Phalcon_Mvc_Model, postSaveRelatedRecords)
ZEPHIR_CONCAT_SVSVS(&_133$$84, "There are no defined relations for the model '", &className, "' using alias '", &name, "'");
ZEPHIR_CALL_METHOD(NULL, &_132$$84, "__construct", &_17, 31, &_133$$84);
zephir_check_call_status();
- zephir_throw_exception_debug(&_132$$84, "phalcon/Mvc/Model.zep", 5142);
+ zephir_throw_exception_debug(&_132$$84, "phalcon/Mvc/Model.zep", 5144);
ZEPHIR_MM_RESTORE();
return;
}
@@ -9733,7 +9735,7 @@ PHP_METHOD(Phalcon_Mvc_Model, allowEmptyStringValues)
ZEPHIR_INIT_VAR(&keysAttributes);
array_init(&keysAttributes);
- zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5183);
+ zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5185);
if (Z_TYPE_P(&attributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0)
{
@@ -10606,7 +10608,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnCreate)
ZEPHIR_INIT_VAR(&keysAttributes);
array_init(&keysAttributes);
- zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5642);
+ zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5644);
if (Z_TYPE_P(&attributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0)
{
@@ -10685,7 +10687,7 @@ PHP_METHOD(Phalcon_Mvc_Model, skipAttributesOnUpdate)
ZEPHIR_INIT_VAR(&keysAttributes);
array_init(&keysAttributes);
- zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5677);
+ zephir_is_iterable(&attributes, 0, "phalcon/Mvc/Model.zep", 5679);
if (Z_TYPE_P(&attributes) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&attributes), _0)
{
@@ -10936,7 +10938,7 @@ PHP_METHOD(Phalcon_Mvc_Model, caseInsensitiveColumnMap)
ZEPHIR_INIT_VAR(&_0);
zephir_array_keys(&_0, columnMap);
- zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5813);
+ zephir_is_iterable(&_0, 0, "phalcon/Mvc/Model.zep", 5815);
if (Z_TYPE_P(&_0) == IS_ARRAY) {
ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(&_0), _1)
{
diff --git a/ext/phalcon/mvc/model.zep.h b/ext/phalcon/mvc/model.zep.h
index 563bc72f244..384daf12eb5 100644
--- a/ext/phalcon/mvc/model.zep.h
+++ b/ext/phalcon/mvc/model.zep.h
@@ -199,7 +199,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_find, 0, 0, Pha
ZEND_ARG_INFO(0, parameters)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_phalcon_mvc_model_findfirst, 0, 0, Phalcon\\Mvc\\ModelInterface, 1)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_model_findfirst, 0, 0, 0)
ZEND_ARG_INFO(0, parameters)
ZEND_END_ARG_INFO()
diff --git a/ext/phalcon/mvc/modelinterface.zep.c b/ext/phalcon/mvc/modelinterface.zep.c
index fded8fa3199..1d04f51b4af 100644
--- a/ext/phalcon/mvc/modelinterface.zep.c
+++ b/ext/phalcon/mvc/modelinterface.zep.c
@@ -109,8 +109,9 @@ ZEPHIR_DOC_METHOD(Phalcon_Mvc_ModelInterface, find);
* @param array parameters
* @return \Phalcon\Mvc\ModelInterface|\Phalcon\Mvc\Model\Row|null
*
- * TODO: Current method signature must be reviewed in v5. As it must return only ?ModelInterface.
+ * TODO: Current method signature must be reviewed in v5. As it must return only ?ModelInterface (it also returns Row).
* @see https://github.com/phalcon/cphalcon/issues/15212
+ * @see https://github.com/phalcon/cphalcon/issues/15883
*/
ZEPHIR_DOC_METHOD(Phalcon_Mvc_ModelInterface, findFirst);
/**
diff --git a/ext/phalcon/mvc/router/route.zep.h b/ext/phalcon/mvc/router/route.zep.h
index 6651eae91d7..c7755aeb378 100644
--- a/ext/phalcon/mvc/router/route.zep.h
+++ b/ext/phalcon/mvc/router/route.zep.h
@@ -73,13 +73,13 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_route_gethttpmethods, 0, 0, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_gethostname, 0, 0, IS_STRING, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_gethostname, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_route_getmatch, 0, 0, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_getname, 0, 0, IS_STRING, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_getname, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_route_getpaths, 0, 0, IS_ARRAY, 0)
diff --git a/ext/phalcon/mvc/router/routeinterface.zep.h b/ext/phalcon/mvc/router/routeinterface.zep.h
index 5bd62d1293c..d308248d9ec 100644
--- a/ext/phalcon/mvc/router/routeinterface.zep.h
+++ b/ext/phalcon/mvc/router/routeinterface.zep.h
@@ -15,13 +15,13 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_getcompiledpattern, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_gethostname, 0, 0, IS_STRING, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_gethostname, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_gethttpmethods, 0, 0, 0)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_getname, 0, 0, IS_STRING, 0)
+ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_getname, 0, 0, IS_STRING, 1)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_phalcon_mvc_router_routeinterface_getpaths, 0, 0, IS_ARRAY, 0)
diff --git a/package.xml b/package.xml
index 49902359cc6..b80f6fa2edd 100644
--- a/package.xml
+++ b/package.xml
@@ -36,6 +36,20 @@
Full changelog can be found at: https://github.com/phalcon/cphalcon/blob/master/CHANGELOG-5.0.md
+ ## Changed
+ - Renamed `Phalcon\Db\Result\Pdo` to `Phalcon\Db\Result\PdoResult` to avoid collisions with `\PDO` [#15874](https://github.com/phalcon/cphalcon/issues/15854)
+
+ ## Fixed
+ - Fixed `Phalcon\Logger\AbstractAdapter::getFormattedItem()` to not add `PHP_EOL` at the end of the message and added it to the `Phalcon\Logger\Adapter\Stream` [#14547](https://github.com/phalcon/cphalcon/issues/14547)
+ - Fixed `Phalcon\Html\Helper\Title:__invoke()` to not use the `$separator` as parameter - no need to redefine it in a view [#15866](https://github.com/phalcon/cphalcon/issues/15866)
+ - Fixed the delimiters for `Phalcon\Support\Helper\SnakeCase` and `Phalcon\Support\Helper\KamelCase` [#15850](https://github.com/phalcon/cphalcon/issues/15850)
+ - Fixed `Phalcon\Mvc\Router\Route::getName()` and `Phalcon\Mvc\Router\Route::getHostname()` to also return `null` [#15880](https://github.com/phalcon/cphalcon/issues/15880)
+ - Fixed `Phalcon\Mvc\Router\RouteInterface::getName()` and `Phalcon\Mvc\Router\RouteInterface::getHostname()` to also return `null` [#15880](https://github.com/phalcon/cphalcon/issues/15880)
+ - Fixed `Phalcon\Mvc\Model::findFirst()` to return `mixed` or `null` [#15883](https://github.com/phalcon/cphalcon/issues/15883)
+
+ ## Added
+ - Added `Phalcon\Html\Helper\Title:setSeparator` to allow setting the separator independently [#15866](https://github.com/phalcon/cphalcon/issues/15866)
+