$article = Article.find(...);
// Update one of the attributes
$article->title = "New Title";
// And only that updated attribute is persisted to the db
$article->save();
// "UPDATE articles SET title = 'New Title' WHERE id = 1"
部分更新能力可以减少应用程序与数据库之间的数据传输,��
�高性能。
Original issue reported on code.google.com by dualf...@gmail.com on 27 May 2008 at 2:43
Original issue reported on code.google.com by
dualf...@gmail.com
on 27 May 2008 at 2:43