This commit is contained in:
parent
7d10dbe190
commit
f2484d1726
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user