Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
ManaPHP
Mvc
Model
MetadataInterface
hasAttribute
ManaPHP\Mvc\Model\MetadataInterface::hasAttribute PHP Method
MetadataInterface Interface Documentation
Show file
Open project: manaphp/manaphp
hasAttribute()
public
method
Check if a model has certain attribute
public
hasAttribute
(
string
| ManaPHP\Mvc\ModelInterface
$model
,
string
$attribute
) :
boolean
$model
string
| ManaPHP\Mvc\ModelInterface
$attribute
string
return
boolean
public function hasAttribute($model, $attribute);
MetadataInterface
getAttributes
getAutoIncrementAttribute
getColumnProperties
getNonPrimaryKeyAttributes
getPrimaryKeyAttributes
hasAttribute