Binding Entities near the end of Chapter 10 #50711
Unanswered
MPAGenie
asked this question in
8000
Symfony Book: The Fast Track
Replies: 2 comments 3 replies
-
Your class needs a unique identifier so Doctrine can identify each record and paginate accordingly. |
Beta Was this translation helpful? Give feedback.
1 reply
-
The Conference entity created in chapter 8 has an identifier field (named |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working through the book recently, and once it gets into the "pagination" section, a strange bug seems to appear on my local -
Binding entities to query parameters only allowed for entities that have an identifier. Class "App\Entity\Conference" does not have an identifier.
I've followed the book to the letter and been unable to work out why this was happening, until a random stack overflow thread I came across made note that this version of the book is for older versions of Symfony, and has a package missing, now long unsupported, that causes this bug. Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions