Permalink
Browse files

sortable behavior: removed getting $con in moveRelatedObjectsToNullSc…

…ope()
  • Loading branch information...
rozwell committed Aug 25, 2012
1 parent 4c369ba commit ed54050ed809368978471ca59ac71eb75a898218
Showing with 0 additions and 4 deletions.
  1. +0 −4 generator/lib/behavior/sortable/SortableRelationBehavior.php
@@ -77,10 +77,6 @@ protected function addObjectMoveRelatedToNullScope(&$script)
*/
public function {$this->getObjectMoveRelatedToNullScopeMethodName()}(PropelPDO \$con = null)
{
- if (\$con === null) {
- \$con = Propel::getConnection($peerClass::DATABASE_NAME, Propel::CONNECTION_WRITE);
- }
-
\$maxRank = $queryClass::create()->getMaxRank(\$this->getPrimaryKey(), \$con);
$peerClass::shiftRank(\$maxRank, null, null, \$this->getPrimaryKey(), \$con);
}

0 comments on commit ed54050

Please sign in to comment.