In my routing.yml I set this rule: page: url: /:slug class: sfPropelRoute options: { model: Web, type: object } param: { module: page, action: page }
My problem is with the slug field. It is a field that doesn't exist in my database of schema.yml, but I made it in my lib/model/Web.php: public function getSlug(){ return Functions::slugify($this->getTitle()); } But helas my routing rule still won't work. For some reason it reaches the action and executes it successfully, but it always uses the first database record and not the correct record by slug. Does someone know how to make this work? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---