You could use ParamConverters here:
```php
public function showAction(UserStory $story)
{
    return array('projectName' => $story->getProject(), 'story' => $story);
}
```