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 ...@@ -126,7 +126,7 @@ abstract class Doctrine_Access implements ArrayAccess
if ( ! isset($offset)) { if ( ! isset($offset)) {
$this->add($value); $this->add($value);
} else { } else {
$this->set($offset,$value); $this->set($offset, $value);
} }
} }
/** /**
......
...@@ -696,7 +696,6 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun ...@@ -696,7 +696,6 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
} catch(Doctrine_Adapter_Exception $e) { } catch(Doctrine_Adapter_Exception $e) {
} catch(PDOException $e) { } } catch(PDOException $e) { }
print Doctrine_Lib::formatSql($query);
$this->rethrowException($e); $this->rethrowException($e);
} }
/** /**
......
...@@ -187,7 +187,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module ...@@ -187,7 +187,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
foreach ($record->getReferences() as $k => $v) { foreach ($record->getReferences() as $k => $v) {
$rel = $record->getTable()->getRelation($k); $rel = $record->getTable()->getRelation($k);
if ($rel instanceof Doctrine_Relation_Association) { if ($rel instanceof Doctrine_Relation_Association) {
$v->save($this->conn); $v->save($this->conn);
$assocTable = $rel->getAssociationTable(); $assocTable = $rel->getAssociationTable();
...@@ -196,7 +196,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module ...@@ -196,7 +196,7 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module
. ' WHERE ' . $rel->getForeign() . ' = ?' . ' WHERE ' . $rel->getForeign() . ' = ?'
. ' AND ' . $rel->getLocal() . ' = ?'; . ' AND ' . $rel->getLocal() . ' = ?';
$this->query($r->getIncremented(), $record->getIncremented()); $this->conn->execute($query, array($r->getIncremented(), $record->getIncremented()));
} }
foreach ($v->getInsertDiff() as $r) { foreach ($v->getInsertDiff() as $r) {
$assocRecord = $assocTable->create(); $assocRecord = $assocTable->create();
......
...@@ -205,10 +205,6 @@ class Doctrine_Db_Statement implements Doctrine_Adapter_Statement_Interface ...@@ -205,10 +205,6 @@ class Doctrine_Db_Statement implements Doctrine_Adapter_Statement_Interface
$skip = $this->adapter->getListener()->onPreExecute($event); $skip = $this->adapter->getListener()->onPreExecute($event);
if ( ! $skip) { if ( ! $skip) {
if (isset($params[0]) && is_array($params[0])) {
print_r($params);
throw new Exception();
}
$this->stmt->execute((array) $params); $this->stmt->execute((array) $params);
$this->adapter->incrementQueryCount(); $this->adapter->incrementQueryCount();
} }
......
...@@ -239,10 +239,9 @@ class Doctrine_Lib ...@@ -239,10 +239,9 @@ class Doctrine_Lib
{ {
$r[] = "<pre>"; $r[] = "<pre>";
$r[] = get_class($collection); $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>"; $r[] = "</pre>";
return implode("\n",$r); return implode("\n",$r);
} }
......
...@@ -1168,7 +1168,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite ...@@ -1168,7 +1168,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
{ {
if ($id === false) { if ($id === false) {
$this->_id = array(); $this->_id = array();
$this->_data = $this->_filter->cleanData($this->_data); $this->_data = $this->_filter->cleanData($this->_data);
$this->_state = Doctrine_Record::STATE_TCLEAN; $this->_state = Doctrine_Record::STATE_TCLEAN;
$this->_modified = array(); $this->_modified = array();
} elseif ($id === true) { } elseif ($id === true) {
......
...@@ -54,7 +54,7 @@ abstract class Doctrine_Relation ...@@ -54,7 +54,7 @@ abstract class Doctrine_Relation
const MANY_COMPOSITE = 3; const MANY_COMPOSITE = 3;
const ONE = 0; const ONE = 0;
const MANY = 1; const MANY = 2;
protected $definition = array('alias' => true, protected $definition = array('alias' => true,
'foreign' => 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