Permalink
Browse files

Applied fix #378 change for self::PEER

  • Loading branch information...
1 parent 957b90a commit 7e169b34187be02a3c4259cdfa697f0b58d6b9e5 @rozwell rozwell committed Aug 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 generator/lib/behavior/sortable/SortableBehaviorObjectBuilderModifier.php
View
4 generator/lib/behavior/sortable/SortableBehaviorObjectBuilderModifier.php
@@ -359,7 +359,7 @@ public function insertAtRank(\$rank, PropelPDO \$con = null)
if (\$rank != \$maxRank + 1) {
// Keep the list modification query for the save() transaction
\$this->sortableQueries []= array(
- 'callable' => array('$peerClassname', 'shiftRank'),
+ 'callable' => array(self::PEER, 'shiftRank'),
'arguments' => array(1, \$rank, null, " . ($useScope ? "\$this->{$this->getColumnGetter('scope_column')}()" : '') . ")
);
}
@@ -647,7 +647,7 @@ public function removeFromList(PropelPDO \$con = null)
{
// Keep the list modification query for the save() transaction
\$this->sortableQueries []= array(
- 'callable' => array('$peerClassname', 'shiftRank'),
+ 'callable' => array(self::PEER, 'shiftRank'),
'arguments' => array(-1, \$this->{$this->getColumnGetter()}() + 1, null" . ($useScope ? ", \$this->{$this->getColumnGetter('scope_column')}()" : '') . ")
);
// remove the object from the list

0 comments on commit 7e169b3

Please sign in to comment.