Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
製品の1つの属性(コード)を自動的に変更したい。どうすればそのplzを行うことができますか?
1つの属性を表示する方法を見てきましたが、変更する方法はわかりません。
どうも
属性名が「attr」で、製品がオブジェクト$productにロードされている場合
$product->setAttr($value); $product->save();