It means your entity should have a property named `$id`, and a method named `getId()`. You can still map that property `$id` to whatever database column you like (as long as it's a non-composite primary key).
-- Jasper N. Brouwer (@jaspernbrouwer) On 29 April 2014 at 12:06:25, Chargui Taieb ([email protected]) wrote: > hi guys > > when i try to generate the controller i get this error > > The CRUD generator expects the entity object has a primary key field named > "id" with a getId() method > > i know it mean i have to rename the primary key of my entity to id and then > generate entities again and finally generate the crud but i wonder does > there any safe solution or trick to let the > > generation happen > > any help appreciated ! -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
