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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.