#6075: new convention tablenames of plugin-models
--------------------------------------------------------+-------------------
    Reporter:  Evertt                                   |          Type:  Bug   
      Status:  new                                      |      Priority:  Medium
   Milestone:  1.2.x.x                                  |     Component:  Model 
     Version:  1.2 Final                                |      Severity:  Normal
    Keywords:  convention table tablename plugin model  |   Php_version:  n/a   
Cake_version:                                           |  
--------------------------------------------------------+-------------------
 I think it would be easier, more logical if you would add this convention:

 "Table names are by convention lowercase and pluralized" - manual

 So a model called 'post' will have a table called 'posts'

 I think that plugins should automatically have the prefix 'pluginname_'

 so for example: a model called 'post' in the plugin called 'blog' will
 have a table called 'blog_posts'

 That keeps things organized and prevents users having to do that
 themselves..

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6075>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to tickets-cakephp@googlegroups.com
To unsubscribe from this group, send email to 
tickets-cakephp+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to