From 1473a06bd94e4ecae85212a777172ae9c1208427 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 1 Feb 2016 06:16:14 +0100 Subject: Fix property->field conversion Support the 'fooBarBaz' usecase --- add_extbase_property.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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&/'` -- cgit