yii\db\ActiveRecordInterface::hasAttribute PHP Method

hasAttribute() public method

Returns a value indicating whether the record has an attribute with the specified name.
public hasAttribute ( string $name ) : boolean
$name string the name of the attribute
return boolean whether the record has an attribute with the specified name.
    public function hasAttribute($name);