Doctrine XML default values

Permalink
Using version 5.7.5.1

Installing DB-tables is working, so I can't be completely wrong, can I?
I tried to assign a default value to a DB-table field as follows.

In the definition of the Entity Class:
/**
* @Column(type="integer", options={"default": 5})
*/
protected $files_num;

or:
/**
* @Column(type="integer")
*/
protected $files_num = 5;

or in the constructor:
public function __construct()
{
    $this->files_num = 5;
}

or in the XML:
<field name="files_num" type="integer">
    <default value="5" />
    <notnull/>
</field>

But the DB-table field 'files_num' is always 'Null'.
What am I missing here?

daenu
 
daenu replied on at Permalink Reply
daenu
As nobody seems to know something about, I've opened an issue on github:
https://github.com/concrete5/concrete5/issues/2941...
It isn't an issue, but it seems that adding default values upon table creation isn't possible with ORM