You had 2 error messages telling you what you did wrong. What did you learn 
from then?

On Tuesday, 18 February 2014 00:59:45 UTC+1, Parsifal wrote:
>
>  
> Do these extensions work for anyone? I could not get them running yet, any 
> assisstance/guidance please?
>
>
> On Mon, Feb 17, 2014 at 10:23 PM, Nima Sadjadi <[email protected]<javascript:>
> > wrote:
>
>> I've uploaded Month.php to Doctrine/ORM/DoctrineExtensions/Query/Mysql, 
>> then have this in bootstrap:
>>
>> $config = new Configuration;
>> $config->addCustomDatetimeFunction('MONTH', 
>> 'Doctrine\ORM\DoctrineExtensions\Query\Mysql\Month');  $em = 
>> EntityManager::create($dbparams, $config, $evm);
>>  
>> when using MONTH in a ->createQuery(); first I got
>> Class 'Doctrine\ORM\DoctrineExtensions\Query\Mysql\Month' not found 
>>
>> but when editing Month.php and removing trailing \ from \Doctrine in line 
>> below:
>> public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker)    {
>> I got this error:
>> Declaration of DoctrineExtensions\Query\Mysql\Month::getSql() must be 
>> compatible with that of 
>> Doctrine\ORM\Query\AST\Functions\FunctionNode::getSql() 
>>
>> what wrong I did?
>>
>>
>> On Mon, Feb 17, 2014 at 11:07 AM, Herman Peeren 
>> <[email protected]<javascript:>
>> > wrote:
>>
>>>
>>> http://docs.doctrine-project.org/en/latest/cookbook/dql-user-defined-functions.html#registering-your-own-dql-functions
>>>
>>>
>>> On Monday, 17 February 2014 08:20:22 UTC+1, Parsifal wrote:
>>>>
>>>> Sorry I am confused, that is just a function not a class, should I put 
>>>> it within a class extending functionNode? Then should I add a function to 
>>>> it as getSql?
>>>>  
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "doctrine-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> To post to this group, send email to [email protected]<javascript:>
>>> .
>>> Visit this group at http://groups.google.com/group/doctrine-user.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to