0
我有下面的代碼,但是這是行不通的:方法findBy()來自主義與日期時間
$event= $this->getDoctrine()
->getRepository('AppBundle:Event')
->findBy(
array(
"datestart" => array(new \DateTime())
)
);
我需要的事件,這是新的,然後現在的名單。
我的錯誤在哪裏?
或者是不是能夠獲得默認的學說findBy()函數?