我有一個非常簡單的問題。我到處搜索它,但我沒有找到任何東西。is returned Doctrine_collection null
我有一個原則這樣的查詢:
return Doctrine_Core::getTable('something')->createQuery()->where('where clause')-
>execute();
我要檢查它是否會返回一些與否。只是它。如果它的內容爲空,我不會做其他的事情。空不行,isset不起作用,count不起作用。我想要做什麼?
我知道這很簡單,但我不知道該怎麼做。
任何建議,將不勝感激。
這說明什麼回報?請對結果使用'var_dump()'並更新你的問題。 – greg0ire