I’m trying to follow table and class name conventions, but I am not sure if CakePHP is linked with the correct table. For example, posts_tags table should be with the class name PostTag. Is there a function I can use to check this?
I’m trying to follow table and class name conventions, but I am not sure
Share
First,
posts_tagswould be associated with a modelPostsTag(notice the pluralized Posts).Second, the table it’s using is available in
Model->table, which is set in__construct().