wdjh.net
相关文档
当前位置:首页 >> yii DirtyAttriButEs >>

yii DirtyAttriButEs

需要在修改属性之前,调用'[attr]_will_change!',然后再修改属性。ActiveRecord源代码dirty.rb中的说明是这样的: # Before modifying an attribute in-place: # person.name_will_change! # person.name ['uncle bob', 'uncle bobby']

需要在修改属性之前,调用'[attr]_will_change!',然后再修改属性。ActiveRecord源代码dirty.rb中的说明是这样的: # Before modifying an attribute in-place: # person.name_will_change! # person.name ['uncle bob', 'uncle bobby']

today i am dirty !今天我是肮脏的! and i want 2 be pretty !我也想变漂亮! tomorrow !明天! i know that i'm just dirt !我知道我仅仅是污垢! today i am dirty !今天我是肮脏的! and i want 2 be pretty !我也想变漂亮! tomorrow !明天! i kn...

网站首页 | 网站地图
All rights reserved Powered by www.wdjh.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com