Thursday, July 10, 2014

Re: HABTM table models in alphabetical order required?

CakePHP allows you to use your own table names. Check that CakePHP book at: http://book.cakephp.org/2.0/en/models/model-attributes.html#usetable
Enjoy, John

On Monday, 7 July 2014 18:20:19 UTC+3, Jamison Bryant wrote:
Hi all,

I'm developing an application that has Photos and Users. I've been using CakePHP since 2.0, so I'm very familiar with HABTM conventions, including the fact that the tables are named in alphabetical order by convention. In my case, this would be photos_users, but I really hate that because it just seems backward. My question is, will CakePHP break if I name the table users_photos, which makes so much more sense?

Thanks,

Jamison

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: