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.
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
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