mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #9700] Fix warning: bind null value in a BLOB field oci8 #11807
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/9700
State: closed
Merged: No
Fixes issue Fixes issue https://github.com/doctrine/orm/issues/9601
When working with optional fields in entity that have a BLOB type (blob, clob, text, ..., etc.), we get a warning:
Deprecated: OCILob::writeTemporary(): Passing null to parameter #1 ($data) of type string is deprecated in vendor/doctrine/dbal/src/Driver/OCI8/Statement.php on line 76https://www.php.net/manual/ru/ocilob.writetemporary.php
The fix replaces the binding type from Blob to String, which allows you to set NULL to this column without calling the method
An example is described in functional test: GH9601Test