Closed jason-horvath closed 4 years ago
Interesting that you mention that properties were coming back. unsetProperty
is deprecated, not removed, so it should have been working normally (unless your updated code used unset()
).
This change is fine though, so I'm going to merge it. I can tag a new release after the merge.
Thanks again!
Sure, that's a good idea. I can do that when I get a chance here.
Oh and I forgot to mention, the legacy code I am working with was using unset($object->prop)
so I think that was part of the issue. That same legacy code works when the trait has unset()
Ok that makes sense as the magic method was updated to use the new unset
method. Let's also add a test case for that as well while we're at it. Another copy/paste :)
Another copy paste it is, consider it done!
Much appreciated!
Hey hey! It's me again! :D
Hehe, I just noticed that the
unsetProperty()
method was removed when going through some unit tests on a repo I am working with, and properties were coming back from the dead on me!Found it here in the migration doc. https://book.cakephp.org/4/en/appendices/4-0-migration-guide.html#orm