Ticket #707 (closed defect: fixed)

Opened 18 months ago

Last modified 16 months ago

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

Changed 18 months ago by z_malloc

also, if you remove ntypes, you find that....

Validator named 'alltypes' not available.

Changed 18 months ago by jwage

  • milestone set to 1.0

Changed 16 months ago by jwage

  • version set to 0.10
  • milestone changed from 1.0 to 0.10.3

Changed 16 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed

(In [3936]) fixes #829 fixes #707

Note: See TracTickets for help on using tickets.