1
0
mirror of synced 2025-01-18 22:41:43 +03:00
This commit is contained in:
zYne 2007-05-22 21:05:52 +00:00
parent 7d10dbe190
commit f2484d1726
7 changed files with 7 additions and 13 deletions

View File

@ -126,7 +126,7 @@ abstract class Doctrine_Access implements ArrayAccess
if ( ! isset($offset)) {
$this->add($value);
} else {
$this->set($offset,$value);
$this->set($offset, $value);
}
}
/**

View File

@ -696,7 +696,6 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
} catch(Doctrine_Adapter_Exception $e) {
} catch(PDOException $e) { }
print Doctrine_Lib::formatSql($query);
$this->rethrowException($e);
}
/**

View File

@ -196,7 +196,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
. ' WHERE ' . $rel->getForeign() . ' = ?'
. ' AND ' . $rel->getLocal() . ' = ?';
$this->query($r->getIncremented(), $record->getIncremented());
$this->conn->execute($query, array($r->getIncremented(), $record->getIncremented()));
}
foreach ($v->getInsertDiff() as $r) {
$assocRecord = $assocTable->create();

View File

@ -205,10 +205,6 @@ class Doctrine_Db_Statement implements Doctrine_Adapter_Statement_Interface
$skip = $this->adapter->getListener()->onPreExecute($event);
if ( ! $skip) {
if (isset($params[0]) && is_array($params[0])) {
print_r($params);
throw new Exception();
}
$this->stmt->execute((array) $params);
$this->adapter->incrementQueryCount();
}

View File

@ -239,10 +239,9 @@ class Doctrine_Lib
{
$r[] = "<pre>";
$r[] = get_class($collection);
$r[] = 'data : ' . Doctrine::dump($collection->getData(), false);
//$r[] = 'snapshot : ' . Doctrine::dump($collection->getSnapshot());
foreach ($collection as $key => $record) {
$r[] = "Key : ".$key." ID : ".$record->obtainIdentifier();
}
$r[] = "</pre>";
return implode("\n",$r);
}

View File

@ -54,7 +54,7 @@ abstract class Doctrine_Relation
const MANY_COMPOSITE = 3;
const ONE = 0;
const MANY = 1;
const MANY = 2;
protected $definition = array('alias' => true,
'foreign' => true,