From 852f2150bf95ded67a13b30833a4ba0c9d0ceb5e Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 7 Oct 2007 23:42:29 +0000 Subject: [PATCH] fixes #463 --- lib/Doctrine/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Collection.php b/lib/Doctrine/Collection.php index 5ea30a391..8f1651c3f 100644 --- a/lib/Doctrine/Collection.php +++ b/lib/Doctrine/Collection.php @@ -158,7 +158,7 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator $this->_table = $connection->getTable($this->_table); if ($keyColumn === null) { - $keyColumn = $table->getBoundQueryPart('indexBy'); + $keyColumn = $this->_table->getBoundQueryPart('indexBy'); } if ($keyColumn !== null) {