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
ffde5546
Commit
ffde5546
authored
Sep 24, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #104
parent
2b7d2db9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
DataDict.php
Doctrine/DataDict.php
+1
-4
Record.php
Doctrine/Record.php
+1
-1
Table.php
Doctrine/Table.php
+2
-2
No files found.
Doctrine/DataDict.php
View file @
ffde5546
...
...
@@ -110,11 +110,8 @@ class Doctrine_DataDict {
return
"I2"
;
elseif
(
$length
<
10
)
return
"I4"
;
elseif
(
$length
<=
20
)
return
"I8"
;
else
throw
new
Doctrine_Exception
(
"Too long integer (max length is 20)."
);
return
"I8"
;
break
;
default
:
throw
new
Doctrine_Exception
(
"Unknown column type
$type
"
);
...
...
Doctrine/Record.php
View file @
ffde5546
...
...
@@ -1409,7 +1409,7 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
* @param mixed $options
* @return void
*/
final
public
function
hasColumn
(
$name
,
$type
,
$length
=
2
0
,
$options
=
""
)
{
final
public
function
hasColumn
(
$name
,
$type
,
$length
=
2
147483647
,
$options
=
""
)
{
$this
->
table
->
setColumn
(
$name
,
$type
,
$length
,
$options
);
}
/**
...
...
Doctrine/Table.php
View file @
ffde5546
...
...
@@ -183,7 +183,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
switch
(
count
(
$this
->
primaryKeys
))
:
case
0
:
$this
->
columns
=
array_merge
(
array
(
"id"
=>
array
(
"integer"
,
11
,
array
(
"autoincrement"
=>
true
,
"primary"
=>
true
))),
$this
->
columns
);
$this
->
columns
=
array_merge
(
array
(
"id"
=>
array
(
"integer"
,
20
,
array
(
"autoincrement"
=>
true
,
"primary"
=>
true
))),
$this
->
columns
);
$this
->
primaryKeys
[]
=
"id"
;
$this
->
identifier
=
"id"
;
$this
->
identifierType
=
Doctrine_Identifier
::
AUTO_INCREMENT
;
...
...
@@ -860,7 +860,7 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable {
}
/**
* getTableDescription
* @return
Doctrine_Table_Description
* @return
array
*/
final
public
function
getTableDescription
()
{
return
$this
->
columns
;
...
...
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