Commit e21562b0 authored by amadeus's avatar amadeus

fixed Record::hasRelation() to call Table::hasRelation() instead of old Table::hasForeignkey()

parent 946e3f1c
...@@ -860,7 +860,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -860,7 +860,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
public function hasRelation($name) { public function hasRelation($name) {
if(isset($this->data[$name]) || isset($this->id[$name])) if(isset($this->data[$name]) || isset($this->id[$name]))
return true; return true;
return $this->table->hasForeignKey($name); return $this->table->hasRelation($name);
} }
/** /**
* getIterator * getIterator
......
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