Commit feaade58 authored by meus's avatar meus

Fixing hasRelation closes #406

parent 75dbc8c8
...@@ -536,6 +536,18 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable ...@@ -536,6 +536,18 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$this->_parser->bind($args[0], $options); $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 * getRelation
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment