On May 16, 2011, at 12:50 PM, Irishstudent wrote:

I receive the following errors in Firebug

Error: Unable to load /groomappointments/appointment/ groomappointservice
status:500


Learn the meanings of HTTP status codes. This is invaluable knowledge for any web developer. Study http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

500 is "Internal Server Error, The server encountered an unexpected condition which prevented it from fulfilling the request." This suggests that the PHP script got a fatal error while executing. Check your Apache server error log, that's where PHP errors end up.

I expect the error is because class Doctrine_Query in Doctrine 1.2 doesn't have a fetchAll() method.

I'm not a regular Doctrine user, so I'm guessing based on reading docs. But it seems you could run $gqry->execute() to return a Doctrine_Collection object, and then call $collection->toArray()

Regards,
Bill Karwin

Reply via email to