Browse files

added new Column:: getSingularPhpName()

  • Loading branch information...
1 parent a8abfc6 commit 2377c209765ebc8ac0a0409ab9ae50c1af1109bb @mpscholten committed Nov 9, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/Propel/Generator/Model/Column.php
View
5 src/Propel/Generator/Model/Column.php
@@ -1398,4 +1398,9 @@ public static function generatePhpName($name, $phpNamingMethod = PhpNameGenerato
{
return NameFactory::generateName(NameFactory::PHP_GENERATOR, [ $name, $phpNamingMethod, $namePrefix ]);
}
+
+ public function getSingularPhpName()
+ {
+ return rtrim($this->getPhpName(), 's');
+ }
}

0 comments on commit 2377c20

Please sign in to comment.