I have a strange issue which I think I narrowed down to observers occasionally not being triggered.
Situation:
An Observer for sales_order_invoice_save_before
(in the global
node), serializes some custom attributes. In most cases, this works fine, but in ~5% of the cases I get the string Array
in sales_flat_order_invoice
, as if the observer was not triggered.
I did not find out yet, what these orders/invoices have in common, but I want to be sure that I am on the right track and the issue isnt't somewhere else.
Question:
In which cases is it possible that models are saved without dispatching their {$eventPrefix}_save_before
event? I can only imagine raw SQL queries but maybe I am missing something?
{$eventPrefix}_save_before
is hardcoded inMage_Core_Model_Abstract::_beforeSave
. So, unless you override_beforeSave
completely for a given model class, I don't think this is possible.depends
node in the module definition file from app/etc/modules?