Skip to content
Browse files

Remove lcfirst() for BC purpose. Fixes #415

  • Loading branch information...
1 parent da3288c commit 363fce3e67cac7893e69d1b2d89dc87bb9a6e924 @willdurand willdurand committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 generator/lib/builder/om/PHP5ObjectBuilder.php
View
5 generator/lib/builder/om/PHP5ObjectBuilder.php
@@ -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();

0 comments on commit 363fce3

Please sign in to comment.
Something went wrong with that request. Please try again.