kamilwylegala / cakephp2-php8

CakePHP 2 fork that supports PHP 8
116 stars 51 forks source link

Fixed dynamic property creation warning for linked models. #55

Closed kamilwylegala closed 7 months ago

kamilwylegala commented 7 months ago

Well... I'm going to merge it to the master branch with warnings silencing attribute (AllowDynamicProperties).

I wanted to provide long-term solution by storing associated models in dedicated array structure, but a mix of __isset + __get is too complicated in Model.php. One evening is not enough to untangle it.

Let's think about it when it's closer to PHP9 release.