document that tableKey is not allowed to have fieldType
This commit is contained in:
parent
7f47927325
commit
b1660fe76b
1 changed files with 0 additions and 2 deletions
|
|
@ -159,7 +159,6 @@ The normal way to use WebGUI::Crud is to create a subclass that defines a specif
|
||||||
define tableName => 'ambassador';
|
define tableName => 'ambassador';
|
||||||
define tableKey => 'ambassadorId';
|
define tableKey => 'ambassadorId';
|
||||||
has ambassadorId => (
|
has ambassadorId => (
|
||||||
fieldType => 'text',
|
|
||||||
default =>undef,
|
default =>undef,
|
||||||
);
|
);
|
||||||
property name => (
|
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 tableName => $config->get('tableName');
|
||||||
define tableKey => $config->get('tableKey');
|
define tableKey => $config->get('tableKey');
|
||||||
has $config->get('tableKey') => (
|
has $config->get('tableKey') => (
|
||||||
fieldType => 'text',
|
|
||||||
default =>undef,
|
default =>undef,
|
||||||
);
|
);
|
||||||
my $fields = $config->get('fields');
|
my $fields = $config->get('fields');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue