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
88336e87
Commit
88336e87
authored
Jun 02, 2008
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
ec5bb2ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
Mysql.php
lib/Doctrine/Connection/Mysql.php
+2
-2
Sqlite.php
lib/Doctrine/Connection/Sqlite.php
+2
-2
Manager.php
lib/Doctrine/Manager.php
+8
-8
No files found.
lib/Doctrine/Connection/Mysql.php
View file @
88336e87
...
...
@@ -44,7 +44,7 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common
* @param Doctrine_Manager $manager
* @param PDO|Doctrine_Adapter $adapter database handler
*/
public
function
__construct
(
Doctrine_Manager
$manager
,
$adapter
)
public
function
__construct
(
$adapter
,
$user
=
null
,
$pass
=
null
)
{
$this
->
setAttribute
(
PDO
::
ATTR_EMULATE_PREPARES
,
true
);
$this
->
setAttribute
(
Doctrine
::
ATTR_DEFAULT_TABLE_TYPE
,
'INNODB'
);
...
...
@@ -87,7 +87,7 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common
$this
->
properties
[
'varchar_max_length'
]
=
255
;
parent
::
__construct
(
$
manager
,
$adapter
);
parent
::
__construct
(
$
adapter
,
$user
,
$pass
);
}
/**
...
...
lib/Doctrine/Connection/Sqlite.php
View file @
88336e87
...
...
@@ -46,7 +46,7 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
* @param Doctrine_Manager $manager
* @param PDO $pdo database handle
*/
public
function
__construct
(
Doctrine_Manager
$manager
,
$adapter
)
public
function
__construct
(
$adapter
,
$user
=
null
,
$pass
=
null
)
{
$this
->
supported
=
array
(
'sequences'
=>
'emulated'
,
'indexes'
=>
true
,
...
...
@@ -67,7 +67,7 @@ class Doctrine_Connection_Sqlite extends Doctrine_Connection_Common
'identifier_quoting'
=>
true
,
'pattern_escaping'
=>
false
,
);
parent
::
__construct
(
$manager
,
$adapter
);
parent
::
__construct
(
$adapter
,
$user
,
$pass
);
if
(
$this
->
isConnected
)
{
$this
->
dbh
->
sqliteCreateFunction
(
'mod'
,
array
(
'Doctrine_Expression_Sqlite'
,
'modImpl'
),
2
);
...
...
lib/Doctrine/Manager.php
View file @
88336e87
...
...
@@ -125,13 +125,13 @@ class Doctrine_Manager implements Doctrine_Configurable, Countable, IteratorAggr
public
function
hasAttribute
(
$key
)
{
return
false
;
}
public
function
setAttribute
(
$name
,
$value
)
{}
public
function
getAttribute
(
$name
)
{
if
(
$name
==
Doctrine
::
ATTR_MODEL_LOADING
)
{
return
Doctrine
::
MODEL_LOADING_CONSERVATIVE
;
}
}
public
function
setAttribute
(
$name
,
$value
)
{}
public
function
getAttribute
(
$name
)
{
if
(
$name
==
Doctrine
::
ATTR_MODEL_LOADING
)
{
return
Doctrine
::
MODEL_LOADING_CONSERVATIVE
;
}
}
/**
...
...
@@ -325,7 +325,7 @@ class Doctrine_Manager implements Doctrine_Configurable, Countable, IteratorAggr
}
$className
=
$drivers
[
$driverName
];
$conn
=
new
$className
(
$
this
,
$
adapter
);
$conn
=
new
$className
(
$adapter
);
$conn
->
setName
(
$name
);
$this
->
_connections
[
$name
]
=
$conn
;
...
...
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