Skip to content

How to set private properties in CodeIgniter\Database\BaseResult::getCustomResultObject() #3051

Description

@ByeongUkChoi

CodeIgniter\Database\BaseResult::getCustomResultObject(string $className)
In this function directly access member properties and assign values
like this
$this->customResultObject[$className][$i]->$key = $value;
So, can't set private properties.
But. How to use 'setter' or 'constructor arguments'?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions