Day 6: Doctrine Secure the Job Page

Discussion around this tutorial for symfony 1.2-1.4

Day 6: Doctrine Secure the Job Page

Postby bshirley » Tue Dec 16, 2008 11:20 pm

It looks like the conversion to Doctrine made an assumption about the parameter that was not valid?…

http://www.symfony-project.org/jobeet/1_2/Doctrine/en/06
last item on the page, just about

// apps/frontend/config/routing.yml
// add (to job_show_user/options…)
method: retrieveActiveJob

//implement new method in...
// lib/model/doctrine/JobeetJobTable.class.php
public function retrieveActiveJob(Doctrine_Query $q)


Catchable fatal error: Argument 1 passed to JobeetJobTable::retrieveActiveJob() must be an instance of Doctrine_Query, array given in /Users/bshirley/Sites/jobeet/lib/model/doctrine/JobeetJobTab le.class.php on line 8

Any insights on how to correct this?

[Edit: duplicate of http://www.symfony-project.org/forum/index.php/t/17678/ but still looking for answer.)
Last edited by bshirley on Tue Dec 16, 2008 11:22 pm, edited 1 time in total.
bshirley
Junior Member
 
Posts: 28
Joined: Fri Nov 14, 2008 11:32 pm
Location: Houston

Return to jobeet

Who is online

Users browsing this forum: No registered users and 2 guests