Hi,

SQL is used to increase performance. On $this->save() not only oxorder object is saved, also all order articles are saved too. There is already bug entry for this problem and it is fixed now. Wait for next release.



----- Original Message ----- From: "Mathias Fiedler" <[email protected]>
To: <[email protected]>
Sent: Tuesday, September 22, 2009 11:01 AM
Subject: [oxid-dev-general] Question about SQL and/or oxBase


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


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

Reply via email to