Re: [kohana-id] I found a bug in model-generater

0 views
Skip to first unread message
Message has been deleted

Arie W. Subagja

unread,
Apr 13, 2010, 1:13:33 AM4/13/10
to koha...@googlegroups.com
please provide us a full description, how to use book.php, anything?

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.
>

Reply all
Reply to author
Forward
Message has been deleted
0 new messages