DB.PHP - PHP ORM

Set table field length

Defining length for your property related table field is simple:

/**
* length your_sql_length_statement
*/
public $name;

For example a property for hero level in dota 2:

/**
* type smallint
* length 2
* unsigned
* default 1
* @var integer
*/
public $level;

0r if field type is double

/**
* length 10,2
* type double
* @var float
*/
public $scale;