summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2016-02-01 06:16:14 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2016-02-01 06:16:14 +0100
commit1473a06bd94e4ecae85212a777172ae9c1208427 (patch)
treef7a876c112869030152704ba70b021597169e800
parent50046b56faaba37f083209cbd653fa517ad9ff14 (diff)
downloadextbase-generator-cli-1473a06bd94e4ecae85212a777172ae9c1208427.tar.gz
extbase-generator-cli-1473a06bd94e4ecae85212a777172ae9c1208427.tar.bz2
extbase-generator-cli-1473a06bd94e4ecae85212a777172ae9c1208427.zip
Fix property->field conversion
Support the 'fooBarBaz' usecase
-rwxr-xr-xadd_extbase_property.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/add_extbase_property.sh b/add_extbase_property.sh
index d6582fd..82c384d 100755
--- a/add_extbase_property.sh
+++ b/add_extbase_property.sh
@@ -58,7 +58,7 @@ tca_file=Configuration/TCA/${tablename}.php
[[ -e "$tca_file" ]] || tca_file=Configuration/TCA/${model}.php
-field=`echo $property | sed -r 's/([a-z]+)([A-Z][a-z]+)/\1_\l\2/g'`
+field=`echo $property | sed -r ':a;s/([a-z]+)([A-Z][a-z]+)/\1_\l\2/g;ta'`
uproperty=`echo $property | sed -r 's/^./\u&/'`