[symfony-users] Singular Plural in generator.yml

2010-02-20 Thread Juan Guillermo Garcia
Hey! Could anyone let me note when symfony uses plural and singular values specified in generator.yml file? Thanks in advance! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com.

Re: [symfony-users] Singular Plural in generator.yml

2010-02-20 Thread Stéphane
Hi, It is used by the themes in the templates of templates (sfDoctrinePlugin/data/generator/sfDoctrineModule/...) When writing a partial in an admin-gen module, you have access to your model via a variable. The variable is named using this singular name, if exists. else it gives you a tableized

Re: [symfony-users] Singular Plural in generator.yml

2010-02-20 Thread Alan Bem
In generated templates/actions like edit, create or delete generator uses singular names for single ORM object eg. $user. In generated templates/actions like index collections/arrays are used for multiple ORM objects. Their names are pluralized because it makes code more sensible for constructions