Field::wasEmpty()
Version 4.1
Check if field had no value
Version 4.1
Check if field had no value
Returns TRUE, if field contained no valid value.
Bool
Show text if status was empty, but now given:
if ( $Order->status->wasEmpty() && $Order->status->isChanged() ){
// Status is given for the first time.
}
The example above is same as:
if ( $Order->status->isInserted() ){}