Skip to content

Instantly share code, notes, and snippets.

@smottt
Created January 15, 2012 14:11
Show Gist options
  • Save smottt/1615966 to your computer and use it in GitHub Desktop.
Save smottt/1615966 to your computer and use it in GitHub Desktop.
CHAR_LENGTH doctrine2 DQL function in symfony2
# app/config/config.yml
doctrine:
orm:
entity_managers:
default:
dql:
numeric_functions:
char_length: Acme\DemoBundle\Extension\Doctrine\Query\Mysql\CharLength
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment