Re: [symfony-users] [symfony2] Accessing the Entity Manager from Entities

2011-04-07 Thread Christophe COEVOET
Le 07/04/2011 12:17, Michel a écrit : Hello, I'm trying to migrate an application to sf2 and I don't know how to solve the following problem: When showing an item (route like /item/show/{id}), I want to be able to directly go to previous and next items (according to sort order). In symfony1,

[symfony-users] [symfony2] Accessing the Entity Manager from Entities

2011-04-07 Thread Michel
Hello, I'm trying to migrate an application to sf2 and I don't know how to solve the following problem: When showing an item (route like /item/show/{id}), I want to be able to directly go to previous and next items (according to sort order). In symfony1, I had 2 methods in the Item class that re