yii\db\ActiveRecordInterface::hasAttribute PHP Méthode

hasAttribute() public méthode

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
Résultat boolean whether the record has an attribute with the specified name.
    public function hasAttribute($name);