db\BaseActiveRecord refresh()

refresh() public method

Repopulates this active record with the latest data.

If the refresh is successful, an EVENT_AFTER_REFRESH event will be triggered. This event is available since version 2.0.8.

public boolean refresh ( )
return boolean

Whether the row still exists in the database. If true, the latest data will be populated to this active record. Otherwise, this record will remain unchanged.

doc_Yii
2016-10-30 16:56:54
Comments
Leave a Comment

Please login to continue.