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
1da5baee
Commit
1da5baee
authored
Mar 02, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
fecce947
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
Doctrine.php
lib/Doctrine.php
+2
-2
Configurable.php
lib/Doctrine/Configurable.php
+1
-0
Parser.php
lib/Doctrine/Hook/Parser.php
+6
-1
Table.php
lib/Doctrine/Table.php
+6
-2
No files found.
lib/Doctrine.php
View file @
1da5baee
...
...
@@ -150,11 +150,11 @@ final class Doctrine
const
ATTR_FIELD_CASE
=
102
;
const
ATTR_IDXNAME_FORMAT
=
103
;
const
ATTR_SEQNAME_FORMAT
=
104
;
const
ATTR_SEQCOL_NAME
=
105
;
const
ATTR_CMPNAME_FORMAT
=
118
;
const
ATTR_DBNAME_FORMAT
=
117
;
const
ATTR_TBLCLASS_FORMAT
=
119
;
const
ATTR_EXPORT
=
140
;
const
ATTR_SEQCOL_NAME
=
105
;
...
...
@@ -169,7 +169,7 @@ final class Doctrine
const
ATTR_DEF_VARCHAR_LENGTH
=
114
;
const
ATTR_DEF_TABLESPACE
=
115
;
const
ATTR_EMULATE_DATABASE
=
116
;
const
ATTR_DEFAULT_SEQUENCE
=
133
;
/** TODO: REMOVE THE FOLLOWING CONSTANTS AND UPDATE THE DOCS ! */
...
...
lib/Doctrine/Configurable.php
View file @
1da5baee
...
...
@@ -127,6 +127,7 @@ abstract class Doctrine_Configurable
case
Doctrine
::
ATTR_ACCESSOR_PREFIX_GET
:
case
Doctrine
::
ATTR_ACCESSOR_PREFIX_SET
:
case
Doctrine
::
ATTR_EMULATE_DATABASE
:
case
Doctrine
::
ATTR_DEFAULT_SEQUENCE
:
break
;
case
Doctrine
::
ATTR_SEQCOL_NAME
:
...
...
lib/Doctrine/Hook/Parser.php
View file @
1da5baee
...
...
@@ -39,7 +39,12 @@ abstract class Doctrine_Hook_Parser
{
return
$this
->
condition
;
}
/**
* getParams
* returns the parameters associated with this parser
*
* @return array
*/
public
function
getParams
()
{
return
$this
->
params
;
...
...
lib/Doctrine/Table.php
View file @
1da5baee
...
...
@@ -266,10 +266,14 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
$this
->
identifierType
=
Doctrine_Identifier
::
SEQUENCE
;
$found
=
true
;
if
(
$value
)
{
if
(
$value
)
{
$this
->
options
[
'sequenceName'
]
=
$value
;
}
else
{
$this
->
options
[
'sequenceName'
]
=
$this
->
conn
->
getSequenceName
(
$this
->
options
[
'tableName'
]);
if
((
$sequence
=
$this
->
getAttribute
(
Doctrine
::
ATTR_DEFAULT_SEQUENCE
))
!==
null
)
{
$this
->
options
[
'sequenceName'
]
=
$sequence
;
}
else
{
$this
->
options
[
'sequenceName'
]
=
$this
->
conn
->
getSequenceName
(
$this
->
options
[
'tableName'
]);
}
}
break
;
}
...
...
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