Skip to content

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

Closed
@skuadron45

Description

@skuadron45

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions