Search code examples
symfony1maxdoctrine-query

No description for object of class "stuff" in symfony


I'm trying to execute this:

    $q = Doctrine_Query::create()
      ->select('MAX(s.ID) AS max')
      ->from('stuff s')
      ->execute();

I'm getting: No description for object of class "stuff". What am I doing wrong?


Solution

  • I just find it. It was fetchOne() instead of execute(). Thanks.