Changeset 501
- Timestamp:
- 01/23/06 10:56:03 (3 years ago)
- Files:
-
- trunk/UPGRADE (modified) (1 diff)
- trunk/lib/database/sfCreoleDatabase.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/UPGRADE
r484 r501 117 117 username: root 118 118 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). 119 129 120 130 12 - change all comments in your YAML file from ; to # trunk/lib/database/sfCreoleDatabase.class.php
r500 r501 128 128 $noAssocLower = $this->getParameter('no_assoc_lower', false); 129 129 $persistent = $this->getParameter('persistent', false); 130 $compatAssocLower = $this->getParameter('compat_assoc_lower', false); 131 $compatRtrimString = $this->getParameter('compat_rtrim_string', false); 130 132 131 133 $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; 134 138 135 139 // do the duuuurtay work, right thurr