Ejemplo n.º 1
0
 public function updateByPrimary(OrdersValue $ordersVo)
 {
     $ordersVo->modified = date("Y-m-d H:i:s");
     $ordersVo->cleanConditions();
     $ordersVo->addPrimaryCondition($ordersVo->getPrimary(), Value::EQUAL);
     $updateNum = Zee::registry("DB")->update($ordersVo, $where);
     if (!$updateNum) {
         return false;
     }
     return $this->getByPrimary($ordersVo->getPrimary());
 }