Solved Command xf-dev:generate-schema-entity don't correctly generate default value of column

This topic has been solved
I

inzanty

Guest
For example, we have column in entity, which haves default value with \XF::$time constant:
PHP:

'creation_date' => ['type' => self::UINT, 'default' => \XF::$time]

But in output we have column with default value 0:
Bash:

Code:
// php cmd.php xf-dev:generate-schema-entity BCORE\eCommerce:ShopItemKey

$this->createTable('xf_bcore_ecommerce_shop_item_key', function (\XF\Db\Schema\Create $table)
{
        $table->addColumn('shop_item_key_id', 'int')->autoIncrement()...

Read more

Continue reading...