From feaade5850ac0ed45aa0c6335a479eec2f2f694f Mon Sep 17 00:00:00 2001 From: meus Date: Sat, 21 Jul 2007 15:46:31 +0000 Subject: [PATCH] Fixing hasRelation closes #406 --- lib/Doctrine/Table.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index 31466bb28..5cecbac33 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -536,6 +536,18 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable $this->_parser->bind($args[0], $options); } } + + /** + * hasRelation + * + * @param string $alias the relation to check if exists + * @return boolean true if the relation exists otherwise false + */ + public function hasRelation($alias) + { + return $this->_parser->hasRelation($alias); + } + /** * getRelation *