Problems saving model

edited December 2011 in Bug Reports
Hi all,

i have a model, which extends Orm \ Model.
I'm trying to save model data to db like this $saved = parent::save($cascade);

If not saved
if (!$saved)AppLog::error('model not saved!', get_called_class(), null, __LINE__);

I always get 'model not saved!' message, sometimes data is saved, sometimes not.

Here id my model

Model_TransactionStatus::_setTrxStatus line: 348 - Model_TransactionStatus Object ( [_is_new:Orm\Model:private] => [_frozen:Orm\Model:private] => [_data:Orm\Model:private] => Array ( [id_transaction] => 153760 [status] => 1 [basket] => 23.34 [is_new_client] => 1 [client_code] => 877284 [description_fail] => [description_fraud] => [description_refusal] => [iovation_result] => ) [_original:Orm\Model:private] => Array ( [id_transaction] => 153760 [status] => 1 [basket] => 23.34 [is_new_client] => 1 [client_code] => 877284 [description_fail] => [description_fraud] => [description_refusal] => [iovation_result] => ) [_data_relations:Orm\Model:private] => Array ( ) [_original_relations:Orm\Model:private] => Array ( ) [_iterable:protected] => Array ( ) )

Need some help. Any ideas?

Comments

Sign In or Register to comment.