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; + } }