Google\Cloud\Datastore\EntityMapper::convertArrayToEntityValue PHP Method

convertArrayToEntityValue() private method

Convert an associative array to a datastore entityValue type
private convertArrayToEntityValue ( array $value ) : array
$value array The input array
return array The entityValue property
    private function convertArrayToEntityValue(array $value)
    {
        $properties = [];
        foreach ($value as $key => $val) {
            $properties[$key] = $this->valueObject($val);
        }
        return ['entityValue' => ['properties' => $properties]];
    }