Google Groups Home
Help | Sign in
#1047: generateModelsFromDb + singularization
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Doctrine  
View profile
 More options 16 May, 13:43
From: "Doctrine" <no-re...@phpdoctrine.org>
Date: Fri, 16 May 2008 12:43:58 -0000
Local: Fri 16 May 2008 13:43
Subject: [Doctrine] #1047: generateModelsFromDb + singularization
#1047: generateModelsFromDb + singularization
-------------------------------------------------------+------------------- -
 Reporter:  x!sign.dll                                 |       Owner:  jwage
     Type:  enhancement                                |      Status:  new  
 Priority:  minor                                      |   Milestone:  0.11.2
Component:  Behaviors                                  |     Version:  0.11  
 Keywords:  singular,plural,singularization,inflector  |  
-------------------------------------------------------+------------------- -
 When the models are generated from the database, the singularization also
 applies to 2 letter words such as "cs" or "as", which will never have a
 plural.[[BR]]

 For example:[[BR]]
 Tablename: foo_as_bar[[BR]]
 generated modelname: FooABar[[BR]]

 Patch:[[BR]]
 Inflector.php[[BR]]
 Line: 135ff.[[BR]]

 Old:[[BR]]

 {{{
 #135:                          '/s$/i' => '');
 }}}

 New:[[BR]]

 {{{
 #135:                           '/^(.{2,2})$/i' => '\\1',
 #136:                          '/s$/i' => '');
 }}}

 - xsign

--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1047>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doctrine  
View profile
 More options 19 May, 16:44
From: "Doctrine" <no-re...@phpdoctrine.org>
Date: Mon, 19 May 2008 15:44:15 -0000
Local: Mon 19 May 2008 16:44
Subject: Re: [Doctrine] #1047: generateModelsFromDb + singularization
#1047: generateModelsFromDb + singularization
--------------------------+------------------------------------------------ -
  Reporter:  x!sign.dll   |       Owner:  jwage                                    
      Type:  enhancement  |      Status:  new                                      
  Priority:  minor        |   Milestone:  0.11.0                                  
 Component:  Behaviors    |     Version:  0.11                                    
Resolution:               |    Keywords:  singular,plural,singularization,inflector
--------------------------+------------------------------------------------ -
Changes (by jwage):

  * milestone:  0.11.2 => 0.11.0

--
Ticket URL: <http://trac.phpdoctrine.org/ticket/1047#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doctrine  
View profile
 More options 19 May, 16:56
From: "Doctrine" <no-re...@phpdoctrine.org>
Date: Mon, 19 May 2008 15:56:05 -0000
Local: Mon 19 May 2008 16:56
Subject: Re: [Doctrine] #1047: generateModelsFromDb + singularization
#1047: generateModelsFromDb + singularization
--------------------------+------------------------------------------------ -
  Reporter:  x!sign.dll   |       Owner:  jwage                                    
      Type:  enhancement  |      Status:  closed                                  
  Priority:  minor        |   Milestone:  0.11.0                                  
 Component:  Behaviors    |     Version:  0.11                                    
Resolution:  fixed        |    Keywords:  singular,plural,singularization,inflector
--------------------------+------------------------------------------------ -
Changes (by jwage):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 (In [4378]) fixes #1047

--
Ticket URL: <http://doctrine.pengus.net/cgi-bin/trac.cgi/ticket/1047#comment:2>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google