Development

Changeset 501

You must first sign up to be able to contribute.

Changeset 501

Show
Ignore:
Timestamp:
01/23/06 10:56:03 (3 years ago)
Author:
fabien
Message:

added support for Creole::COMPAT_ASSOC_LOWER and Creole::COMPAT_RTRIM_STRING

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/UPGRADE

    r484 r501  
    117117             username:     root 
    118118             password:      
     119             compat_assoc_lower:  true 
     120             compat_rtrim_string: true 
     121 
     122       To get a dabatase connection, you must now use the symfony database manager: 
     123 
     124       0.4.X/0.5.X                 | 0.6.X/0.7.X 
     125       ----------------------------|-------------------- 
     126       Propel::getConnection()     | sfContext::getInstance()->getDatabaseConnection($connection_name) 
     127 
     128       `$connection_name` is the name of your connection (`propel` in the example above). 
    119129 
    120130  12 - change all comments in your YAML file from ; to # 
  • trunk/lib/database/sfCreoleDatabase.class.php

    r500 r501  
    128128      $noAssocLower = $this->getParameter('no_assoc_lower', false); 
    129129      $persistent   = $this->getParameter('persistent', false); 
     130      $compatAssocLower  = $this->getParameter('compat_assoc_lower', false); 
     131      $compatRtrimString = $this->getParameter('compat_rtrim_string', false); 
    130132 
    131133      $flags  = 0; 
    132       $flags |= ($noAssocLower) ? Creole::NO_ASSOC_LOWER : 0; 
    133       $flags |= ($persistent) ? Creole::PERSISTENT : 0; 
     134      $flags |= ($noAssocLower)      ? Creole::NO_ASSOC_LOWER : 0; 
     135      $flags |= ($persistent)        ? Creole::PERSISTENT : 0; 
     136      $flags |= ($compatAssocLower)  ? Creole::COMPAT_ASSOC_LOWER : 0; 
     137      $flags |= ($compatRtrimString) ? Creole::COMPAT_RTRIM_STRING : 0; 
    134138 
    135139      // do the duuuurtay work, right thurr