1
0
mirror of synced 2025-03-04 20:03:21 +03:00

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

This commit is contained in:
amadeus 2006-09-05 22:09:07 +00:00
parent 946e3f1c5d
commit e21562b057

View File

@ -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