Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove lcfirst() for BC purpose. Fixes #415

  • Loading branch information...
commit 363fce3e67cac7893e69d1b2d89dc87bb9a6e924 1 parent da3288c
William Durand willdurand authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 generator/lib/builder/om/PHP5ObjectBuilder.php
5 generator/lib/builder/om/PHP5ObjectBuilder.php
View
@@ -4361,7 +4361,10 @@ protected function addCrossFKRemove(&$script, ForeignKey $refFK, ForeignKey $cro
$joinedTableObjectBuilder = $this->getNewObjectBuilder($refFK->getTable());
$className = $joinedTableObjectBuilder->getObjectClassname();
- $M2MScheduledForDeletion = lcfirst($relCol) . "ScheduledForDeletion";
+ $lowerRelCol = $relCol;
+ $lowerRelCol[0] = strtolower($lowerRelCol[0]);
+
+ $M2MScheduledForDeletion = $lowerRelCol . "ScheduledForDeletion";
$crossObjectName = '$' . $crossFK->getForeignTable()->getStudlyPhpName();
$crossObjectClassName = $this->getNewObjectBuilder($crossFK->getForeignTable())->getObjectClassname();
Please sign in to comment.
Something went wrong with that request. Please try again.