Fixing hasRelation closes #406
This commit is contained in:
parent
75dbc8c841
commit
feaade5850
@ -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
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user