Is it possible to specify a column type of unsigned integer
in Doctrine 2?
Doctrine 1 documentation and Doctrine 2 documentation said you can do it by this ways:
PHP annotations:
/**
* @Column(type="integer", name="some_field" options={"unsigned":true})
*/
protected $someField;
Yaml: (see docs)
MyEntity:
fields:
someField:
type: integer
column: some_field
options:
unsigned: true
Hope this helps to someone to save a time ;)