On Wednesday, January 29, 2014 11:58:34 AM UTC, Francesco Tassi wrote:
>
> Hi,
>
> I'm having troubles filtering by date a set of documents, using phpcr-odm
>


Eventually I got it, I was passing a string date instead of a DateTime 
object.
This is perfectly fine for filtering by date:

$qb->andWhere()->lte()->field('a.publishStartDate')->literal(new 
\DateTime());

Cheers

Francesco

-- 
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