From 89ce4a28ec6f7f291d5d6ddbcbdc855ae555c61e Mon Sep 17 00:00:00 2001 From: nightfreak Date: Mon, 5 Nov 2007 18:05:17 +0000 Subject: [PATCH] =added the missing getter for the Doctrine_Relation object --- lib/Doctrine/Collection.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Doctrine/Collection.php b/lib/Doctrine/Collection.php index ef80abde2..a360361a3 100644 --- a/lib/Doctrine/Collection.php +++ b/lib/Doctrine/Collection.php @@ -780,4 +780,13 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator { return Doctrine_Lib::getCollectionAsString($this); } + + /** + * returns the relation object + * @return object Doctrine_Relation + */ + public function getRelation() + { + return $this->relation; + } }