On Apr 10, 4:08 pm, Arsouille <[email protected]> wrote:
> Hi,
>
> This is an extract of my routing.yml file :
>
> evolution:
>   class: sfPropelRouteCollection
>   options:
>     model: oxEvolution
>     method_for_criteria: doSelectJoinoxProject
>

I stumbled across this as well... After poking around a bit in the
source here is what I found works...

evolution:
  class: sfPropelRouteCollection
  options:
     model: oxEvolution
     model_methods: { list: doSelectJoinoxProject }

Now in the actions class:

public function executeIndex(sfWebRequest $request)
{
    $c = new Criteria();
    ....
    $this->getRoute()->setListCriteria($c);
    $this->list = $this->getRoute()->getObjects();
}

(of course this is with my own models and routes in my project)

> What i want is add a method_for_criteria to my index action. But i
> don't know how to do.
>
>   Thanks for your help.
>
>  Arsou

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to