Skip to content

Commit 9f06836

Browse files
committed
Remove reference to generators on cursor destruction
1 parent d949a7b commit 9f06836

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Alcaeus/MongoDbAdapter/AbstractCursor.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ public function __construct(\MongoClient $connection, $ns)
131131
}
132132
}
133133

134+
public function __destruct()
135+
{
136+
$this->iterator = null;
137+
}
138+
134139
/**
135140
* Returns the current element
136141
* @link http://www.php.net/manual/en/mongocursor.current.php

0 commit comments

Comments
 (0)