attributes() public method
Returns the list of all attribute names of the model.
This method must be overridden by child classes to define available attributes.
Attributes are names of fields of the corresponding elasticsearch document. The primaryKey for elasticsearch documents is the _id
field by default which is not part of the attributes. You may define path mapping for the _id
field so that it is part of the _source
fields and thus becomes part of the attributes.
public string[] attributes ( ) | ||
---|---|---|
return | string[] |
List of attribute names. |
throws | yii\base\InvalidConfigException |
if not overridden in a child class. |
Please login to continue.