Skip to content

Commit

Permalink
Bug: '' Property in Seeder Class Never Initialize #2825
Browse files Browse the repository at this point in the history
  • Loading branch information
jlamim committed Apr 21, 2020
1 parent a5c3c58 commit 30cd24d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/Database/Seeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

use CodeIgniter\CLI\CLI;
use CodeIgniter\Config\BaseConfig;
use CodeIgniter\Database\Forge;

/**
* Class Seeder
Expand Down Expand Up @@ -122,6 +123,8 @@ public function __construct(BaseConfig $config, BaseConnection $db = null)
}

$this->db = & $db;

$this->forge = \Config\Database::forge($this->DBGroup);
}

//--------------------------------------------------------------------
Expand Down

0 comments on commit 30cd24d

Please sign in to comment.