Wednesday, August 25, 2010

sfDoctrinePager: Fatal error: Call to undefined method Doctrine_Collection::offset()

If you set a sfDoctrinePager object and give an EXECUTED query to the $this->pager->setQuery() method, you get a fatal error. Don't forget, sfDoctrinePager will execute the query, not you. Remove the ->execute() command from the end of the query.

Fatal error: Call to undefined method Doctrine_Collection::offset() in C:\webserv\www\phpcrm\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib\pager\sfDoctrinePager.class.php on line 84

11 comments:

  1. Thank you so much!!! I can leave the Excedrin in the closet this morning :)

    ReplyDelete
  2. thxxxxxxxxxxxxxx

    ReplyDelete
  3. thanks! you save my day

    ReplyDelete
  4. This article is an appealing wealth of informative data that is interesting and well-written.I commend your hard work on this and thank you for this information.You’ve got what it takes to get attention. undefined

    ReplyDelete
  5. Hey guys! IECS is a consulting company specializing in studying abroad in Germany, especially studying German nursing in Hanoi and Ho Chi Minh City. IECS is the most prestigious and best German vocational training center in Vietnam. See more at dieuduongduc to know more

    ReplyDelete
  6. IECS is a consulting company specializing in studying abroad in Germany, especially studying German nursing in Hanoi and Ho Chi Minh City. IECS is the most prestigious and best German vocational training center in Vietnam. See more at vuatiengduc for more details

    ReplyDelete
  7. IECS is a consulting company specializing in studying abroad in Germany, especially studying German nursing in Hanoi and Ho Chi Minh City. IECS is the most prestigious and best German vocational training center in Vietnam. See more at luatphapduc to know more

    ReplyDelete