doctrine query builder can not use some function of mysql

NOW()

INTERVAL 1 HOUR


if you wannt to comapre somthing, try to use this;


->andWhere('o.actionTime > :date')
->setParameters(array('status' =>$status, 'userId'=>$userId,'date'=>new \DateTime('-12 hour')));

评论

热门博文