Doctrine - get the offset of an object in a collection (implementing an infinite scroll)
- by dan
I am using Doctrine and trying to implement an infinite scroll on a collection of notes displayed on the user's browser.
The application is very dynamic, therefore when the user submits a new note, the note is added to the top of the collection straightaway, besides being sent (and stored) to the server.
Which is why I can't use a traditional…