From 45f4ec24433db25f813a899f4d3ee4c3654d86ef Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 20 May 2007 18:33:29 +0000 Subject: [PATCH] --- lib/Doctrine/Table.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index d88cd19a6..f58950fc8 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -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'],