Skip to content

Commit

Permalink
Merge pull request #2864 from jlamim/forge_in_seeder
Browse files Browse the repository at this point in the history
Initialize $forge property in Seeder Class - fixes #2825
  • Loading branch information
lonnieezell committed Apr 22, 2020
2 parents 96e72f6 + 30cd24d commit 6006d09
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 6006d09

Please sign in to comment.