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
yii
db
ActiveRecordInterface
setAttribute
yii\db\ActiveRecordInterface::setAttribute PHP Method
ActiveRecordInterface Interface Documentation
Show file
Open project: yiisoft/yii2
setAttribute()
public
method
Sets the named attribute value.
See also:
hasAttribute()
public
setAttribute
(
string
$name
,
mixed
$value
)
$name
string
the attribute name.
$value
mixed
the attribute value.
public function setAttribute($name, $value);
ActiveRecordInterface
attributes
delete
deleteAll
equals
find
findAll
findOne
getAttribute
getDb
getIsNewRecord
getOldPrimaryKey
getPrimaryKey
getRelation
hasAttribute
insert
isPrimaryKey
link
populateRelation
primaryKey
save
setAttribute
unlink
update
updateAll