Hello List,

one general question about usage of SQL or oxBase Objects.

When you have a look at the " protected function _setOrderStatus( $sStatus )" in oxOrder a question arises: "Why direct SQL and not

$this->oxorder__oxtransstatus->setValue("OK");
$this->save();

Would be much cleaner then using SQL here, or?

Problem that arises from using sql: in the oxorder object the oxtransstatus is still "ERROR", so when u save the order object later (e.g. after "finalizeorder" in a module) the "OK" status is replaced by "ERROR" again -> Inconsistence

comments?

Bye

Mathias
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to