Hello,
I have a Project model with a static method called
retrieveOnlineProjects(), which works perfectly.
I'm trying to use this method to retrieve objects using
$this->getRoute()->getObjects() in the action.
My routing.yml file :
homepage:
url: /
class: sfDoctrineRoute
options: { model: Project, type: list, method_for_query:
retrieveOnlineProjects }
param: { module: projects, action: index }
requirements:
sf_method: [get]
I get a Doctrine_Record exception with the message "Unknown method
Project::retrieveOnlineProjectsTableProxy"...
I'm using symfony 1.2.4. What am I doing wrong ?
NB: everything works fine with the following routing setup :
homepage:
url: /
class: sfObjectRoute
options: { model: Project, type: list, method: retrieveOnlineProjects }
param: { module: projects, action: index }
requirements:
sf_method: [get]
-
Thomas Dedericks
[email protected]
GSM: +32 (0) 499 23 60 22
http://tequila-studio.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---