1
0
mirror of synced 2024-12-14 15:16:04 +03:00
This commit is contained in:
zYne 2007-05-20 18:33:29 +00:00
parent 0f921a8c4d
commit 45f4ec2443

View File

@ -736,10 +736,10 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
* @return void
*/
public function unbindAll()
{ throw new Exception();
$this->bound = array();
$this->relations = array();
$this->boundAliases = array();
{
$this->bound = array();
$this->relations = array();
$this->boundAliases = array();
}
/**
* unbinds a relation
@ -965,9 +965,9 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
} else {
// auto initialize a new one-to-one relationships for association table
$associationTable->bind($this->getComponentName(),
$associationTable->getComponentName(). '.' . $e2[1],
Doctrine_Relation::ONE_AGGREGATE
);
$associationTable->getComponentName(). '.' . $e2[1],
Doctrine_Relation::ONE_AGGREGATE
);
$associationTable->bind($definition['table']->getComponentName(),
$associationTable->getComponentName(). '.' . $definition['foreign'],