Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sortable behavior: removed getting $con in moveRelatedObjectsToNullSc…

…ope()
  • Loading branch information...
commit ed54050ed809368978471ca59ac71eb75a898218 1 parent 4c369ba
@rozwell authored
Showing with 0 additions and 4 deletions.
  1. +0 −4 generator/lib/behavior/sortable/SortableRelationBehavior.php
View
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.