Commit f2484d17 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 7d10dbe1
......@@ -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);
}
}
/**
......
......@@ -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);
}
/**
......
......@@ -187,7 +187,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
foreach ($record->getReferences() as $k => $v) {
$rel = $record->getTable()->getRelation($k);
if ($rel instanceof Doctrine_Relation_Association) {
if ($rel instanceof Doctrine_Relation_Association) {
$v->save($this->conn);
$assocTable = $rel->getAssociationTable();
......@@ -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();
......
......@@ -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();
}
......
......@@ -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);
}
......
......@@ -1168,7 +1168,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
{
if ($id === false) {
$this->_id = array();
$this->_data = $this->_filter->cleanData($this->_data);
$this->_data = $this->_filter->cleanData($this->_data);
$this->_state = Doctrine_Record::STATE_TCLEAN;
$this->_modified = array();
} elseif ($id === true) {
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment