0
我在更新表格行時遇到了一些麻煩。在更新Symfony 1.4中的表格行時處理updated_by字段
這裏是我的代碼
$product = ProductTable::getInstance()->find($product_id);
$product->setQunatity(($product->getQunatity() - $qty));
$product->setSellingQty(($product->getSellingQty() + $qty));
$product->save();
這裏symfony的自動更新updated_by領域。但我不想更新該特定領域。
這是可能的symfony 1.4。我正在使用Diem Project 5
或者只有超級管理員才能執行這些代碼。
在此先感謝。
謝謝你的建議伴侶。 – 2013-04-25 02:57:43