PrestaShop / example-modules

Example PrestaShop modules
Academic Free License v3.0
177 stars 118 forks source link

Set parent::__construct after add definition #135

Closed PrestaSafe closed 1 year ago

PrestaSafe commented 1 year ago

If the parent::__construct is before de self::$definition['fields']['code'] = ['type' => self::TYPE_STRING, 'size' => 64]; The objectModel can't be updated.

Questions Answers
Description? Add the parent::__contruct before the self::definition because the objectModel can't be updated
Type? bug fix
BC breaks? no
Deprecations? no
How to test? Follow the exemple
Possible impacts? none
matthieu-rolland commented 1 year ago

thank you @PrestaSafe :+1: