Author: Leon.van.der.Ree
Date: 2010-03-24 11:32:42 +0100 (Wed, 24 Mar 2010)
New Revision: 28754
Modified:
plugins/sfPropelObjectPathBehaviorPlugin/branches/1.5/lib/ObjectPathCriteria.php
Log:
introduced constant as alias-delimiter
Modified:
plugins/sfPropelObjectPathBehaviorPlugin/branches/1.5/lib/ObjectPathCriteria.php
===================================================================
---
plugins/sfPropelObjectPathBehaviorPlugin/branches/1.5/lib/ObjectPathCriteria.php
2010-03-24 08:57:54 UTC (rev 28753)
+++
plugins/sfPropelObjectPathBehaviorPlugin/branches/1.5/lib/ObjectPathCriteria.php
2010-03-24 10:32:42 UTC (rev 28754)
@@ -8,6 +8,8 @@
*/
class ObjectPathCriteria extends ModelCriteria
{
+ const ALIAS_DELIMITER = '___';
+
/**
* Recursively performs JoinWith on the provided ObjectPaths
*
@@ -76,7 +78,7 @@
throw new PropelException('no relation provided');
}
$relationName = $relationsNames[0];
- $alias = $this->getModelAliasOrName().'_'.$relationName;
+ $alias = $this->getModelAliasOrName().self::ALIAS_DELIMITER.$relationName;
// if more relations are provided, continue (recursively) parsing the
objectPath
if (isset($relationsNames[1]))
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.