ElggEntity::refresh PHP Method

refresh() public method

Load new data from database into existing entity. Overwrites data but does not change values not included in the latest data.
public refresh ( stdClass $row ) : boolean
$row stdClass DB row with new entity data
return boolean
    public function refresh(\stdClass $row)
    {
        if ($row instanceof \stdClass) {
            return $this->load($row);
        }
        return false;
    }