Post table:
id name content
1 test1 generated from fixture
2 test2 generated
3 test3 generated
4 post1 this is actual post
5 post2 real
Routing:
post_show:
url: /:name
class: sfDoctrineRoute
options: { model: Posts, type: object, allow_empty: true}
param: { module: post, action: show, name:test1}
Using $this->getRoute()->getObject();
in the action will return object fine for example.com/test1, example.com/test2, example.com/test3, will return nothing for all other queries (e.g. example.com/post1). What could be causing this?
* I believe the only difference between the records that are returned(test records) and the ones that don't(post) is that the test records were generated from my fixture