Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: $forge Property in Seeder Class Never Initialize #2825

Closed
skuadron45 opened this issue Apr 15, 2020 · 0 comments
Closed

Bug: $forge Property in Seeder Class Never Initialize #2825

skuadron45 opened this issue Apr 15, 2020 · 0 comments
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Milestone

Comments

@skuadron45
Copy link

Describe the bug
According to the documentation here about Database Seeding,

"It has access to the database connection and the forge through $this->db and $this->forge, respectively"

I think $forge property never initialize on constructor, not like CodeIgniter\Database\Migration, so we can't direct access to use $this->forge

image

CodeIgniter 4 version
4.0.2-develop

Affected module(s)
CodeIgniter\Database\Seeder.php

Expected behavior, and steps to reproduce if appropriate

Context

  • OS: Windows 7
  • Web server Apache 2.4.35
  • PHP version 7.2.19
@skuadron45 skuadron45 added the bug Verified issues on the current code behavior or pull requests that will fix them label Apr 15, 2020
@lonnieezell lonnieezell added this to the 4.0.3 milestone Apr 21, 2020
jlamim added a commit to jlamim/CodeIgniter4 that referenced this issue Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

No branches or pull requests

2 participants