doctrine-dbal icon indicating copy to clipboard operation
doctrine-dbal copied to clipboard

Using `blob` as a column type causes `ProfilerLogger` to fail

Open dakur opened this issue 3 years ago • 0 comments

Error message

PDO::quote(): Argument #1 ($string) must be of type string, resource given in ProfilerLogger.php#L61

Trace screenshot

image

Problematic column

is annotated as follows:

/**
 * @ORM\Column(type="blob")
 * @var resource
 */
private $stream;

Workaround

is to disable tracy panel:

nettrine.dbal:
	debug:
		panel: false # %debugMode% # temporary disabled as otherwise ProfilerLogger complains on blob types

dakur avatar Jun 28 '22 11:06 dakur