Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/AbraFlexi/RO.php
Original file line number Diff line number Diff line change
Expand Up @@ -1045,13 +1045,14 @@ public function fixResponseTypes(array $response)
}

/**
* Fix AbraFlexi record field types.
* Converts the fields of an AbraFlexi record array to appropriate native PHP types based on column metadata.
*
* @param string $evidence force other than current
* Fields are cast or transformed according to their defined types, including booleans, numbers, strings, dates, and relations. Relation fields are converted to `Relation` objects, supporting both single and multiple values. Unknown field types result in an exception.
*
* @throws \Ease\Exception
*
* @return array with items typed
* @param array $record The record data to typecast.
* @param string|null $evidence Optional evidence name to override the current one.
* @return array The record with fields converted to native types or objects.
* @throws \Ease\Exception If an unknown field type is encountered.
*/
public function fixRecordTypes(array $record, $evidence = null)
{
Expand Down