1
0
mirror of synced 2024-12-13 06:46:03 +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) {
if(isset($this->data[$name]) || isset($this->id[$name]))
return true;
return $this->table->hasForeignKey($name);
return $this->table->hasRelation($name);
}
/**
* getIterator