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
I noticed an unexpected variable type during the execution of RecursivePublishable::publishRecursive(), tested on 1.x-dev (3c7a1db1d4f1a93c3169cea0175363d1c6e25b6a). $owner->ParentID should be an integer but it's a string instead. Note that we I load the model directly the $model->ParentID is correct as it contains an integer. This may break some features which rely on integer fields always being integers.
Code snippet below is taken directly from RecursivePublishable::publishRecursive() with some extra debug information.
I know a while back there was an effort to fix database query return types, and it looks like that’s working as expected at least (as when you re-fetch it, it has the correct type). Could the problem be that wherever ParentID is initially being populated, the value isn’t being cast before it’s set?
Incorrect field type during publishRecursive()
I noticed an unexpected variable type during the execution of
RecursivePublishable::publishRecursive()
, tested on1.x-dev
(3c7a1db1d4f1a93c3169cea0175363d1c6e25b6a
).$owner->ParentID
should be an integer but it's a string instead. Note that we I load the model directly the$model->ParentID
is correct as it contains an integer. This may break some features which rely on integer fields always being integers.Code snippet below is taken directly from
RecursivePublishable::publishRecursive()
with some extra debug information.The text was updated successfully, but these errors were encountered: