Ticket #707 (closed defect: fixed)
Import scripts creating code validators can't deal with. ntype not a known validator
| Reported by: | z_malloc | Owned by: | jonwage |
|---|---|---|---|
| Priority: | major | Milestone: | 0.10.3 |
| Component: | Other | Version: | 0.10.0 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | ||
| Status: | Has Patch: |
Description
After running the generateModelsfromDb() I end up with model classes containing this
$this->hasColumn('username', 'string', 150, array (
'ntype' => 'varchar',
'alltypes' =>
array (
0 => 'string',
),
'fixed' => false,
'notnull' => true,
'primary' => false,
));
Two problems here. First, the field is unique, and no unique constraint was built. Second, the first array with the key of 'ntype' causes validation to break. It seems that validation may not be prepared to deal with this array.
Change History
Note: See
TracTickets for help on using
tickets.