Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
3c0192db
Commit
3c0192db
authored
Jan 16, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
484fb080
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
Tree.php
draft/Tree.php
+10
-10
Db.php
lib/Doctrine/Db.php
+4
-0
No files found.
draft/Tree.php
View file @
3c0192db
...
...
@@ -17,7 +17,7 @@
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
*/
/**
* Doctrine_Tree
*
...
...
@@ -89,20 +89,20 @@ class Doctrine_Tree
return
new
$class
(
$table
,
$options
);
}
/**
* gets tree attribute value
*
*/
/**
* gets tree attribute value
*
*/
public
function
getAttribute
(
$name
)
{
return
isset
(
$this
->
options
[
$name
])
?
$this
->
options
[
$name
]
:
null
;
}
/**
* sets tree attribute value
*
* @param mixed
*/
/**
* sets tree attribute value
*
* @param mixed
*/
public
function
setAttribute
(
$name
,
$value
)
{
$this
->
options
[
$name
]
=
$value
;
...
...
lib/Doctrine/Db.php
View file @
3c0192db
...
...
@@ -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
)));
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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment