mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-485: Doctrine\DBAL\Connection::_bindTypedValues() must implement interface Doctrine\DBAL\Driver\Statement #608
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?
Originally created by @doctrinebot on GitHub (Mar 30, 2010).
Jira issue originally created by user mridgway:
I haven't fully investigated this, but doing an update on trunk today I started receiving the following error message:
Catchable fatal error: Argument 1 passed to Doctrine\DBAL\Connection::_bindTypedValues() must implement interface Doctrine\DBAL\Driver\Statement, instance of PDOStatement given, called in ./library/Doctrine/DBAL/Connection.php on line 639 and defined in ./library/Doctrine/DBAL/Connection.php on line 869This is occurring when a row is updated to point to the related field in another row (when both are persisted at the same time). It doesn't actually break the updates (with xdebug installed anyway).
It only appears to occur with a select few of my models that contain cascaded persists (and I'll be sure to attempt a test case for this for tomorrow). I haven't tested this fully but wanted to post this in case anyone has an idea of why this might be happening.
@doctrinebot commented on GitHub (Mar 31, 2010):
Comment created by romanb:
Hm, are you creating the PDO instance yourself (and passing it to Doctrine via the 'pdo' option)? That might be the reason.
@doctrinebot commented on GitHub (Mar 31, 2010):
Comment created by romanb:
I'm not sure whether we should just remove the typehint and use duck-typing there or whether we should enforce a better way.
@doctrinebot commented on GitHub (Mar 31, 2010):
Comment created by mridgway:
Yes, we are passing a PDO instance to Doctrine.
@doctrinebot commented on GitHub (Mar 31, 2010):
Comment created by romanb:
Should be fixed now. The method in question now uses duck-typing.
@doctrinebot commented on GitHub (Mar 31, 2010):
Issue was closed with resolution "Fixed"