ncross42 wrote:
> It is a very simple bus.
>
> If table-fields has a numeric character, generater make a wrong php
> script.
>
> example) books table has "isbn13" filed.
>
> # DESC books;
> +--------------+------------------+------+-----+---------
> +----------------+
> | Field | Type | Null | Key | Default |
> Extra |
> +--------------+------------------+------+-----+---------
> +----------------+
> | id | int(11) | NO | PRI | NULL |
> auto_increment |
> ....
> | isbn13 | varchar(13) | YES | | NULL
> | |
> ....
> +--------------+------------------+------+-----+---------
> +----------------+
>
> # books.php
> public function getVRules() {
> return array(
> 'id' => array(
> array( 'integer' ),
> array( 'maxlength', 11 ),
> array( 'notnull' ),
> ),
> ....
> 'isbnarray( <- this
> is a bug.
> array( 'maxlength', 13 ),
> array( 'optional' ),
> ),
> ....
> );
> }
>
>
> please check this bug.
>
> Best regards.
>