diff --git a/lib/Doctrine/DBAL/Statement.php b/lib/Doctrine/DBAL/Statement.php index c11adbd280d..f6f6ca5e726 100644 --- a/lib/Doctrine/DBAL/Statement.php +++ b/lib/Doctrine/DBAL/Statement.php @@ -190,6 +190,12 @@ public function execute($params = null) */ public function closeCursor() { + Deprecation::triggerIfCalledFromOutside( + 'doctrine/dbal', + 'https://github.com/doctrine/dbal/pull/4049', + 'Statement::closeCursor() is deprecated, use Result::free() instead.' + ); + return $this->stmt->closeCursor(); }