Fixing hasRelation closes #406
This commit is contained in:
parent
75dbc8c841
commit
feaade5850
1 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue