This commit is contained in:
parent
484fb080cd
commit
3c0192dbfe
@ -17,7 +17,7 @@
|
|||||||
* This software consists of voluntary contributions made by many individuals
|
* This software consists of voluntary contributions made by many individuals
|
||||||
* and is licensed under the LGPL. For more information, see
|
* and is licensed under the LGPL. For more information, see
|
||||||
* <http://www.phpdoctrine.com>.
|
* <http://www.phpdoctrine.com>.
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* Doctrine_Tree
|
* Doctrine_Tree
|
||||||
*
|
*
|
||||||
@ -89,20 +89,20 @@ class Doctrine_Tree
|
|||||||
return new $class($table, $options);
|
return new $class($table, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gets tree attribute value
|
* gets tree attribute value
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function getAttribute($name)
|
public function getAttribute($name)
|
||||||
{
|
{
|
||||||
return isset($this->options[$name]) ? $this->options[$name] : null;
|
return isset($this->options[$name]) ? $this->options[$name] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* sets tree attribute value
|
* sets tree attribute value
|
||||||
*
|
*
|
||||||
* @param mixed
|
* @param mixed
|
||||||
*/
|
*/
|
||||||
public function setAttribute($name, $value)
|
public function setAttribute($name, $value)
|
||||||
{
|
{
|
||||||
$this->options[$name] = $value;
|
$this->options[$name] = $value;
|
||||||
|
@ -204,6 +204,10 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte
|
|||||||
$this->dbh->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine_Db_Statement', array($this)));
|
$this->dbh->setAttribute(PDO::ATTR_STATEMENT_CLASS, array('Doctrine_Db_Statement', array($this)));
|
||||||
|
|
||||||
foreach($this->pendingAttributes as $attr => $value) {
|
foreach($this->pendingAttributes as $attr => $value) {
|
||||||
|
// some drivers don't support setting this so we just skip it
|
||||||
|
if($attr == PDO::ATTR_DRIVER_NAME) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$this->dbh->setAttribute($attr, $value);
|
$this->dbh->setAttribute($attr, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user