airtable-php icon indicating copy to clipboard operation
airtable-php copied to clipboard

Ability to enable typecast

Open TheDaveloper opened this issue 4 years ago • 0 comments

Would be good to be able to enable type casting when creating entries

function saveContent($content_type,$fields,$typecast = false)
	{

	    if( ! $this->_detectBatch( $fields ) )
        {
            $fields = array('fields' => $fields);
        }
	    else
        {
            $fields = array('records' => $fields);
        }

        if($typecast) {
            $fields['typecast'] = true;
        }

		$request = new Request( $this, $content_type, $fields, true );

		return $request->getResponse();

	}

TheDaveloper avatar Feb 13 '21 22:02 TheDaveloper