fixed Record::hasRelation() to call Table::hasRelation() instead of old Table::hasForeignkey()
This commit is contained in:
parent
946e3f1c5d
commit
e21562b057
@ -860,7 +860,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
|
||||
public function hasRelation($name) {
|
||||
if(isset($this->data[$name]) || isset($this->id[$name]))
|
||||
return true;
|
||||
return $this->table->hasForeignKey($name);
|
||||
return $this->table->hasRelation($name);
|
||||
}
|
||||
/**
|
||||
* getIterator
|
||||
|
Loading…
Reference in New Issue
Block a user