I installed the Beberlei DoctrineExtensions but can't get the mysql DAY and YEAR to work.
I have this in my autoloader:
$doctrineExtensions = new Doctrine\Common\ClassLoader('DoctrineExtensions', ROOT.DS.'library');
$doctrineExtensions->register();
And when i try to do following dql statement
SELECT YEAR(e.eventdate) FROM \Entities\Event e
I get following error: Error: Expected known function, got 'YEAR'' in /usr/local/lib/php/Doctrine/ORM/Query/QueryException.php:42
In top of my file i have
use \DoctrineExtensions\Query\Mysql;
And i can see that it can find the class if i type:
$test = \DoctrineExtensions\Query\Mysql\Year::getSql();
But not if i type
$test = Year::getSql();
Seems like some implementation is missing but can't find out what the problem is..