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 think I've found a problem with the beforeInsert hook when used with the Mongo Mapper. Running the script below on the CLI produces the error below. Why would it need _id before inserting? The error appears even if the function is completely empty. The beforeUpdate hook works fine without error.
In case it matters:
PHP 8.0.30
MongoDB 7.0.11
PHP MongoDB driver library 1.20.0 (going back as far as 1.16.0 doesn't help, same error)
Fat-Free Framework 3.9.0 (going back as far as 3.7.0 doesn't help, same error)
Hi,
I think I've found a problem with the
beforeInsert
hook when used with the Mongo Mapper. Running the script below on the CLI produces the error below. Why would it need_id
before inserting? The error appears even if the function is completely empty. ThebeforeUpdate
hook works fine without error.In case it matters:
Thanks!
The text was updated successfully, but these errors were encountered: