Why is it that when baking a model for a HABTM table that it pluralizes the first model name. Convention tells me that model names should be singular even when it is a camel cased HABTM model.
In my example I have Two existing models 1) Kjv, and 2) Subject. The HABTM table (kjvs_subjects) has three fields. 1)id, 2)kjv_id, and 3)subject_id When baking the model for the HABTM table it populates the model (and corresponding controller actions) with "KjvsSubject" (plural for the first model). I would expect KjvSubject as the model name. And expect in the controller actions to be something like $this- >KjvSubject->create(); But instead I am getting "KjvsSubject". The baked models/controller/views appear to work, but it bothers me that it does not follow convention and may break. I am using an earlier release of 1.2 is that my problem. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
