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
dcdc0495
Commit
dcdc0495
authored
Jan 02, 2007
by
lsmith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- CS fixes
parent
9f6a652a
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
2662 additions
and
2658 deletions
+2662
-2658
Collection.php
lib/Doctrine/Collection.php
+769
-769
Firebird.php
lib/Doctrine/DataDict/Firebird.php
+205
-204
Mssql.php
lib/Doctrine/DataDict/Mssql.php
+180
-180
Mysql.php
lib/Doctrine/DataDict/Mysql.php
+440
-439
Oracle.php
lib/Doctrine/DataDict/Oracle.php
+182
-181
Pgsql.php
lib/Doctrine/DataDict/Pgsql.php
+598
-597
Sqlite.php
lib/Doctrine/DataDict/Sqlite.php
+286
-285
Validator.php
lib/Doctrine/Validator.php
+2
-3
No files found.
lib/Doctrine/Collection.php
View file @
dcdc0495
...
...
@@ -464,7 +464,7 @@ class Doctrine_Collection extends Doctrine_Access implements Countable, Iterator
*/
public
function
get
(
$key
)
{
if
(
$key
===
null
)
{
if
(
$key
===
null
)
{
$record
=
$this
->
table
->
create
();
if
(
isset
(
$this
->
reference_field
))
{
...
...
lib/Doctrine/DataDict/Firebird.php
View file @
dcdc0495
...
...
@@ -108,8 +108,9 @@ class Doctrine_DataDict_Firebird extends Doctrine_DataDict
$field
[
'field_sub_type'
]
=
!
empty
(
$field
[
'field_sub_type'
])
?
strtolower
(
$field
[
'field_sub_type'
])
:
null
;
if
(
!
isset
(
$field
[
'name'
]))
if
(
!
isset
(
$field
[
'name'
]))
{
$field
[
'name'
]
=
''
;
}
switch
(
$dbType
)
{
case
'smallint'
:
...
...
lib/Doctrine/DataDict/Mssql.php
View file @
dcdc0495
...
...
@@ -122,7 +122,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict
// todo: unsigned handling seems to be missing
$unsigned
=
$fixed
=
null
;
if
(
!
isset
(
$field
[
'name'
]))
if
(
!
isset
(
$field
[
'name'
]))
$field
[
'name'
]
=
''
;
switch
(
$db_type
)
{
...
...
@@ -131,7 +131,7 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict
break
;
case
'int'
:
$type
[
0
]
=
'integer'
;
if
(
$length
==
1
)
{
if
(
$length
==
1
)
{
$type
[]
=
'boolean'
;
}
break
;
...
...
lib/Doctrine/DataDict/Mysql.php
View file @
dcdc0495
...
...
@@ -236,8 +236,9 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict
$type
=
array
();
$unsigned
=
$fixed
=
null
;
if
(
!
isset
(
$field
[
'name'
]))
if
(
!
isset
(
$field
[
'name'
]))
{
$field
[
'name'
]
=
''
;
}
switch
(
$dbType
)
{
case
'tinyint'
:
...
...
lib/Doctrine/DataDict/Oracle.php
View file @
dcdc0495
...
...
@@ -104,8 +104,9 @@ class Doctrine_DataDict_Oracle extends Doctrine_DataDict
$length
=
$field
[
'length'
];
}
if
(
!
isset
(
$field
[
'name'
]))
if
(
!
isset
(
$field
[
'name'
]))
{
$field
[
'name'
]
=
''
;
}
switch
(
$db_type
)
{
case
'integer'
:
...
...
lib/Doctrine/DataDict/Pgsql.php
View file @
dcdc0495
...
...
@@ -435,8 +435,9 @@ class Doctrine_DataDict_Pgsql extends Doctrine_DataDict
$type
=
array
();
$unsigned
=
$fixed
=
null
;
if
(
!
isset
(
$field
[
'name'
]))
if
(
!
isset
(
$field
[
'name'
]))
{
$field
[
'name'
]
=
''
;
}
$db_type
=
strtolower
(
$field
[
'type'
]);
...
...
lib/Doctrine/DataDict/Sqlite.php
View file @
dcdc0495
...
...
@@ -128,8 +128,9 @@ class Doctrine_DataDict_Sqlite extends Doctrine_DataDict
$fixed
=
null
;
$type
=
array
();
if
(
!
isset
(
$field
[
'name'
]))
if
(
!
isset
(
$field
[
'name'
]))
{
$field
[
'name'
]
=
''
;
}
switch
(
$dbType
)
{
case
'boolean'
:
...
...
lib/Doctrine/Validator.php
View file @
dcdc0495
...
...
@@ -182,10 +182,9 @@ class Doctrine_Validator
*/
private
function
validateLength
(
$column
,
$key
,
$value
)
{
if
(
$column
[
0
]
==
"timestamp"
)
{
if
(
$column
[
0
]
==
"timestamp"
)
{
return
true
;
}
else
if
(
$column
[
0
]
==
"array"
||
$column
[
0
]
==
"object"
)
{
}
else
if
(
$column
[
0
]
==
"array"
||
$column
[
0
]
==
"object"
)
{
$length
=
strlen
(
serialize
(
$value
));
}
else
{
$length
=
strlen
(
$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