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 UNACCENT.
*
* @see https://www.postgresql.org/docs/17/unaccent.html
* @author Martin Hasoň <[email protected]>
*/
class Unaccent extends BaseVariadicFunction
{
protected function getNodeMappingPattern(): array
return ['StringPrimary'];
}
protected function getFunctionName(): string
return 'unaccent';
protected function getMinArgumentCount(): int
return 1;
protected function getMaxArgumentCount(): int
return 2;