From b1660fe76b294733cb451d3f4ec78f3f21fc19f9 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Thu, 23 Jun 2011 13:07:19 -0500 Subject: [PATCH] document that tableKey is not allowed to have fieldType --- lib/WebGUI/Crud.pm | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/WebGUI/Crud.pm b/lib/WebGUI/Crud.pm index 823db5fcd..f489c4b27 100644 --- a/lib/WebGUI/Crud.pm +++ b/lib/WebGUI/Crud.pm @@ -159,7 +159,6 @@ The normal way to use WebGUI::Crud is to create a subclass that defines a specif define tableName => 'ambassador'; define tableKey => 'ambassadorId'; has ambassadorId => ( - fieldType => 'text', default =>undef, ); property name => ( @@ -182,7 +181,6 @@ A more advanced approach is to create a subclass that dynamically generates a de define tableName => $config->get('tableName'); define tableKey => $config->get('tableKey'); has $config->get('tableKey') => ( - fieldType => 'text', default =>undef, ); my $fields = $config->get('fields');