"id" is only the default value. You can give the field any name and also map to any column-name with
/** @Column(name="MyCustomColumnName") */ On Tuesday, 29 April 2014 12:06:21 UTC+2, Chargui Taieb 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.
