search

Home  >  Q&A  >  body text

TP5.1 After setting a field in the model using a getter, how to obtain the original value of the field?

TP5.1 After setting a field in the model with a getter, how to obtain the original value of the field?

For example: status field

protected getStatusAttr($value)

{

return $value ? 'Normal' : 'Disabled';

}

Want to get the original value of status 1 or 0.

What methods can be used and how many implementation methods are there?

连界 现代 周伟连界 现代 周伟2053 days ago1261

reply all(0)I'll reply

No reply
  • Cancelreply