DB.PHP - PHP ORM

Set table field type

If you want that your table field had other type than property type offers by deault you can achieve that by keyword type:

/**
* type your_sql_field_type_statement
*/

For example:

/**
* type bigint
*/

db.php first checks if value for keyword type referrences to a db.php basic type (one from integer,string,float,bool\boolean,binary,date,time) or if type value represents class name if after negative result it uses type keyword value to a property field column type.

Remember that property type and field type(or column type) are different things. Property type defines runtime type for your class property value and field type defines field type in your database table.