public static function underscore($string) { return strtolower(preg_replace('#(\\w)([A-Z])#', '$1_$2', $string)); }
public function getTableName() { if (!$this->tableName) { $tableName = str_replace('Mapper', '', $this->getReflection()->getShortName()); $this->tableName = StringHelper::underscore($tableName); } return $this->tableName; }