Changeset 1082 for trunk/runtime
- Timestamp:
- 09/17/08 14:11:31 (3 months ago)
- Files:
-
- trunk (modified) (1 prop)
- trunk/runtime/classes/propel/map/TableMap.php (modified) (1 diff)
- trunk/runtime/classes/propel/util/BasePeer.php (modified) (3 diffs)
- trunk/runtime/classes/propel/validator/UniqueValidator.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk
- Property svn:ignore set to
.project
.cache
.settings
- Property svn:ignore set to
trunk/runtime/classes/propel/map/TableMap.php
r1024 r1082 331 331 332 332 if ($fkTable && $fkColumn) { 333 if (substr($fkColumn, '.') > 0 && substr($fkColumn, $fkTable) !== false) {333 if (stristr($fkColumn, '.') && strstr($fkColumn, $fkTable)) { 334 334 $fkColumn = substr($fkColumn, strlen($fkTable) + 1); 335 335 } trunk/runtime/classes/propel/util/BasePeer.php
r1068 r1082 31 31 * @author Hans Lellelid <hans@xmpl.org> (Propel) 32 32 * @author Kaspars Jaudzems <kaspars.jaudzems@inbox.lv> (Propel) 33 * @author Tony Bibbs <tony@tonybibbs.com> (Propel) 33 34 * @author Heltem <heltem@o2php.com> (Propel) 34 35 * @author Frank Y. Kim <frank.kim@clearink.com> (Torque) … … 83 84 84 85 $peerclass = 'Base' . $classname . 'Peer'; // TODO is this always true? 86 $config = Propel::getConfiguration(); 87 if ($config['namespaces']['enabled'] == 1) { 88 $peerclass = $config['namespaces']['peer']['value'] . '::' . $peerclass; 89 } 85 90 $callable = array($peerclass, 'getFieldnames'); 86 91 $args = array($type); … … 94 99 95 100 $peerclass = 'Base' . $classname . 'Peer'; // TODO is this always true? 101 $config = Propel::getConfiguration(); 102 if ($config['namespaces']['enabled'] == 1) { 103 $peerclass = $config['namespaces']['peer']['value'] . '::' . $peerclass; 104 } 96 105 $callable = array($peerclass, 'translateFieldname'); 97 106 $args = array($fieldname, $fromType, $toType); trunk/runtime/classes/propel/validator/UniqueValidator.php
r1068 r1082 51 51 52 52 $table = $column->getTable()->getPhpName(); 53 53 $config = Propel::getConfiguration(); 54 54 $clazz = $table . 'Peer'; 55 if ($config[namespaces][enabled] == 1) { 56 $clazz = $config[namespaces][peer][value] . '::' . $clazz; 57 } 55 58 $count = call_user_func(array($clazz, 'doCount'), $c); 56 59
