for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace MartinGeorgiev\Doctrine\ORM\Query\AST\Functions;
/**
* Implementation of PostgreSQL JSON_SERIALIZE().
*
* Supports basic form:
* - json_serialize(expression)
* @see https://www.postgresql.org/docs/17/functions-json.html
* @since 2.10
* @author Martin Georgiev <[email protected]>
*/
class JsonSerialize extends BaseFunction
{
protected function customizeFunction(): void
$this->setFunctionPrototype('json_serialize(%s)');
$this->addNodeMapping('StringPrimary');
}