* Returns the list of fields that should be returned by default by [[toArray()]] when no specific fields are specified. * * A field is a named element in the returned array by [[toArray()]]. * * This method should return an array of field names or field definitions. * If the former, the field name will be treated as an object property name whose value will be used * a
()
| 985 | * @see toArray() |
| 986 | */ |
| 987 | public function fields() |
| 988 | { |
| 989 | $fields = $this->attributes(); |
| 990 | |
| 991 | return array_combine($fields, $fields); |
| 992 | } |
| 993 | |
| 994 | /** |
| 995 | * Returns an iterator for traversing the attributes in the model. |
nothing calls this directly
no test coverage detected