It seems that there is a proplem how the admin generator maps fields that have an underscore and digits at the end. The issue is, that the field identifier for a label can be not generated correctly. The following example should explain this in detail.
In my case I have the following schema:
article:
id:
image_a: { type: varchar(255) }
image_1: { type: varchar(255) }
image_22: { type: varchar(255) }
Then I generate the admin module via 'propel-init-admin app module Article'.
I open the generated 'generator.yml' which I edit as follows:
generator:
class: sfPropelAdminGenerator
param:
model_class: Article
theme: default
fields:
image_a: { name: Image One } # Works, Image One is shown
image_1: { name: Image Two } # Works not, Image1 is shown
image_22: { name: Another Image } # Works not, Image22 is shown
Workaround for me, was to change 'image_1' to 'image1' (same for image_22) then the admin generator works as I thought it to do.
This is my first report, I hope, I havent done too much wrong. By the way, I have not spend much time looking for duplicates, so dont slap me, if someone has already reported this issue. :p
Best regards,
Martin