[CI4][seeder] Clarify or fix a confused point in the Seeder class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: [CI4][seeder] Clarify or fix a confused point in the Seeder class (/showthread.php?tid=86650) |
[CI4][seeder] Clarify or fix a confused point in the Seeder class - Pasc - 02-06-2023 Code Igniter 4.3.1 In class vendor/codeigniter4/framework/system/Database/Seeder.php we have : PHP Code: public function __construct(Database $config, ?BaseConnection $db = null) PHP Code: $db ??= Database::connect($this->DBGroup); It sould be written: PHP Code: $db ?? Database::connect($this->DBGroup); RE: [CI4][seeder] Clarify or fix a confused point in the Seeder class - kenjis - 02-09-2023 What do you mean? Why does not it work? What's happened? |