src/Formatter.php
private function getQueryAttrConverter(Store $store, AttributeMetadata $attrMeta)
    {
        return function ($value) use ($store, $attrMeta) {
            if (in_array($attrMeta->dataType, ['object', 'array'])) {
                // Leave the value as is.
                return $value;
            }
            $value = $store->convertAttributeValue($attrMeta->dataType, $value);
            return $this->getAttributeDbValue($attrMeta, $value);
        };

    }
private function getQueryAttrConverter(Store $store, AttributeMetadata $attrMeta)
    {
        return function ($value) use ($store, $attrMeta) {
            if (in_array($attrMeta->dataType, ['object', 'array'])) {
                // Leave the value as is.
                return $value;
            }
            $value = $store->convertAttributeValue($attrMeta->dataType, $value);
            return $this->getAttributeDbValue($attrMeta, $value);
        };

    }
private function getQueryAttrConverter ( Store $ store , AttributeMetadata $ attrMeta ) { return function ( $ value ) use ( $ store , $ attrMeta ) { if ( in_array ( $ attrMeta -> dataType , [ 'object' , 'array' ] ) ) { // Leave the value as is. return $ value ; } $ value = $ store -> convertAttributeValue ( $ attrMeta -> dataType , $ value ) ; return $ this -> getAttributeDbValue ( $ attrMeta , $ value ) ; } ; }
Gets the converter for handling attribute values in queries.

@param   Store               $store
@param   AttributeMetadata   $attrMeta
@return  Closure
Gets the converter for handling attribute values in queries .