I have the following tables:
- administrators
- properties
- administrators_properties
Controller files are titled:
- administrators_controller.php
- properties_controller.php
- administrators_properties_controller.php
Model files are titled:
- administrator.php
- property.php
- administrators_property.php
I’m having trouble understanding the singular/plural naming convention for the joined model name. (Or could the problem be with the controller? Maybe administrator_properties_controller.php?)
Any obvious issue come to mind?
If you have troubles understanding how to pluralize or singularize words, use inflector:
http://book.cakephp.org/2.0/en/core-utility-libraries/inflector.html
If you are using CakePHP 2.X, your naming is wrong. You should read about CakePHP naming conventions on the cookbook:
http://book.cakephp.org/2.0/en/getting-started/cakephp-conventions.html
Tables:
Join tables:
Controllers:
Models:
In your case your tables are ok. About the rest:
Controllers should be:
AdministratorsController.php,PropertiesController.php,AdministratorsPropertiesController.phpModels should be:
Administrator.php,Property.php,AdministratorsProperty.php