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

12 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. IECS is a consulting company specializing in studying in Germany, especially studying in Germany for nursing in Hanoi and Ho Chi Minh City. In addition, the center also supports applying for VISA. Visit duhocnghe for more information and support about studying in Germany!

    ReplyDelete
  6. 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
  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 vuatiengduc for more details

    ReplyDelete
  8. 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