You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
\CodeIgniter\Entity class does not set original's when initialized with data as a parameter to __construct function.
CodeIgniter 4 version
4.0.4
Affected module(s)
\CodeIgniter\Entity
Expected behavior, and steps to reproduce if appropriate
When initializing a new instance of Entity I assume that attributes:protected and original:protected should be set. Otherwise i cant use functions like hasChanged().
Code:
$entity = new Entity(['username' => 'Haugli92']);
print_r($entity);
Describe the bug
\CodeIgniter\Entity class does not set original's when initialized with data as a parameter to __construct function.
CodeIgniter 4 version
4.0.4
Affected module(s)
\CodeIgniter\Entity
Expected behavior, and steps to reproduce if appropriate
When initializing a new instance of Entity I assume that attributes:protected and original:protected should be set. Otherwise i cant use functions like hasChanged().
Code:
Result:
Context
The text was updated successfully, but these errors were encountered: