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
f556ee8c
Commit
f556ee8c
authored
Sep 12, 2008
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved Null/Type/Platform
parent
4d7b8838
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
1841 deletions
+19
-1841
Configuration.php
lib/Doctrine/Configuration.php
+1
-1
Type.php
lib/Doctrine/DBAL/Types/Type.php
+1
-1
DatabasePlatform.php
lib/Doctrine/DatabasePlatform.php
+0
-1822
Entity.php
lib/Doctrine/Entity.php
+7
-7
EntityManager.php
lib/Doctrine/EntityManager.php
+1
-1
Abstract.php
lib/Doctrine/EntityPersister/Abstract.php
+2
-2
Abstract.php
lib/Doctrine/Hydrator/Abstract.php
+1
-1
RecordDriver.php
lib/Doctrine/Hydrator/RecordDriver.php
+1
-1
Null.php
lib/Doctrine/ORM/Internal/Null.php
+4
-4
Doctrine_DatabasePlatformMock.php
tests/lib/mocks/Doctrine_DatabasePlatformMock.php
+1
-1
No files found.
lib/Doctrine/Configuration.php
View file @
f556ee8c
...
...
@@ -59,7 +59,7 @@ class Doctrine_Configuration
*/
public
function
__construct
()
{
$this
->
_nullObject
=
Doctrine_Null
::
$INSTANCE
;
$this
->
_nullObject
=
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
;
$this
->
_initAttributes
();
}
...
...
lib/Doctrine/D
ata
Type.php
→
lib/Doctrine/D
BAL/Types/
Type.php
View file @
f556ee8c
...
...
@@ -2,7 +2,7 @@
#namespace Doctrine::DBAL::Types;
abstract
class
Doctrine_D
ata
Type
abstract
class
Doctrine_D
BAL_Types_
Type
{
private
static
$_typeObjects
=
array
();
private
static
$_typesMap
=
array
(
...
...
lib/Doctrine/DatabasePlatform.php
deleted
100644 → 0
View file @
4d7b8838
This diff is collapsed.
Click to expand it.
lib/Doctrine/Entity.php
View file @
f556ee8c
...
...
@@ -238,7 +238,7 @@ abstract class Doctrine_Entity implements ArrayAccess, Serializable
// Single field identifier
$name
=
$this
->
_class
->
getIdentifier
();
$name
=
$name
[
0
];
if
(
isset
(
$this
->
_data
[
$name
])
&&
$this
->
_data
[
$name
]
!==
Doctrine_Null
::
$INSTANCE
)
{
if
(
isset
(
$this
->
_data
[
$name
])
&&
$this
->
_data
[
$name
]
!==
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
)
{
$this
->
_id
[
$name
]
=
$this
->
_data
[
$name
];
}
}
else
{
...
...
@@ -391,7 +391,7 @@ abstract class Doctrine_Entity implements ArrayAccess, Serializable
*/
final
protected
function
_get
(
$fieldName
)
{
$nullObj
=
Doctrine_Null
::
$INSTANCE
;
$nullObj
=
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
;
if
(
isset
(
$this
->
_data
[
$fieldName
]))
{
return
$this
->
_data
[
$fieldName
]
!==
$nullObj
?
$this
->
_data
[
$fieldName
]
:
null
;
...
...
@@ -481,7 +481,7 @@ abstract class Doctrine_Entity implements ArrayAccess, Serializable
*/
final
public
function
_internalGetField
(
$fieldName
)
{
if
(
$this
->
_data
[
$fieldName
]
===
Doctrine_Null
::
$INSTANCE
)
{
if
(
$this
->
_data
[
$fieldName
]
===
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
)
{
return
null
;
}
return
$this
->
_data
[
$fieldName
];
...
...
@@ -514,7 +514,7 @@ abstract class Doctrine_Entity implements ArrayAccess, Serializable
*/
final
public
function
_internalGetReference
(
$fieldName
)
{
if
(
$this
->
_references
[
$fieldName
]
===
Doctrine_Null
::
$INSTANCE
)
{
if
(
$this
->
_references
[
$fieldName
]
===
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
)
{
return
null
;
}
return
$this
->
_references
[
$fieldName
];
...
...
@@ -534,7 +534,7 @@ abstract class Doctrine_Entity implements ArrayAccess, Serializable
*/
final
public
function
_internalSetReference
(
$name
,
$value
,
$completeBidirectional
=
false
)
{
if
(
is_null
(
$value
)
||
$value
===
Doctrine_Null
::
$INSTANCE
)
{
if
(
is_null
(
$value
)
||
$value
===
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
)
{
$this
->
_references
[
$name
]
=
$value
;
return
;
// early exit!
}
...
...
@@ -678,7 +678,7 @@ abstract class Doctrine_Entity implements ArrayAccess, Serializable
private
function
_contains
(
$fieldName
)
{
if
(
isset
(
$this
->
_data
[
$fieldName
]))
{
if
(
$this
->
_data
[
$fieldName
]
===
Doctrine_Null
::
$INSTANCE
)
{
if
(
$this
->
_data
[
$fieldName
]
===
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
)
{
return
false
;
}
return
true
;
...
...
@@ -687,7 +687,7 @@ abstract class Doctrine_Entity implements ArrayAccess, Serializable
return
true
;
}
if
(
isset
(
$this
->
_references
[
$fieldName
])
&&
$this
->
_references
[
$fieldName
]
!==
Doctrine_Null
::
$INSTANCE
)
{
$this
->
_references
[
$fieldName
]
!==
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
)
{
return
true
;
}
return
false
;
...
...
lib/Doctrine/EntityManager.php
View file @
f556ee8c
...
...
@@ -158,7 +158,7 @@ class Doctrine_EntityManager
$this
->
_metadataFactory
=
new
Doctrine_ClassMetadata_Factory
(
$this
,
new
Doctrine_ClassMetadata_CodeDriver
());
$this
->
_unitOfWork
=
new
Doctrine_Connection_UnitOfWork
(
$this
);
$this
->
_nullObject
=
Doctrine_Null
::
$INSTANCE
;
$this
->
_nullObject
=
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
;
}
/**
...
...
lib/Doctrine/EntityPersister/Abstract.php
View file @
f556ee8c
...
...
@@ -80,7 +80,7 @@ abstract class Doctrine_EntityPersister_Abstract
$this
->
_entityName
=
$classMetadata
->
getClassName
();
$this
->
_conn
=
$em
->
getConnection
();
$this
->
_classMetadata
=
$classMetadata
;
$this
->
_nullObject
=
Doctrine_Null
::
$INSTANCE
;
$this
->
_nullObject
=
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
;
}
/**
...
...
@@ -287,7 +287,7 @@ abstract class Doctrine_EntityPersister_Abstract
$type
=
$entity
->
getClass
()
->
getTypeOfField
(
$field
);
$columnName
=
$entity
->
getClass
()
->
getColumnName
(
$field
);
if
(
$newVal
===
Doctrine_Null
::
$INSTANCE
)
{
if
(
$newVal
===
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
)
{
$result
[
$columnName
]
=
null
;
continue
;
}
...
...
lib/Doctrine/Hydrator/Abstract.php
View file @
f556ee8c
...
...
@@ -67,7 +67,7 @@ abstract class Doctrine_Hydrator_Abstract
public
function
__construct
(
Doctrine_EntityManager
$em
)
{
$this
->
_em
=
$em
;
$this
->
_nullObject
=
Doctrine_Null
::
$INSTANCE
;
$this
->
_nullObject
=
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
;
}
/**
...
...
lib/Doctrine/Hydrator/RecordDriver.php
View file @
f556ee8c
...
...
@@ -43,7 +43,7 @@ class Doctrine_Hydrator_RecordDriver
public
function
__construct
(
Doctrine_EntityManager
$em
)
{
$this
->
_nullObject
=
Doctrine_Null
::
$INSTANCE
;
$this
->
_nullObject
=
Doctrine_
ORM_Internal_
Null
::
$INSTANCE
;
$this
->
_em
=
$em
;
}
...
...
lib/Doctrine/Null.php
→
lib/Doctrine/
ORM/Internal/
Null.php
View file @
f556ee8c
<?php
/*
* $Id$
* $Id
: Null.php 4723 2008-08-01 18:46:14Z romanb
$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
...
...
@@ -37,12 +37,12 @@
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @link www.phpdoctrine.org
* @since 1.0
* @version $Revision$
* @version $Revision
: 4723
$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
*/
// static initializer
Doctrine_
Null
::
$INSTANCE
=
new
Doctrine
_Null
();
final
class
Doctrine_Null
Doctrine_
ORM_Internal_Null
::
$INSTANCE
=
new
Doctrine_ORM_Internal
_Null
();
final
class
Doctrine_
ORM_Internal_
Null
{
public
static
$INSTANCE
;
public
function
__construct
()
{}
...
...
tests/lib/mocks/Doctrine_DatabasePlatformMock.php
View file @
f556ee8c
<?php
class
Doctrine_DatabasePlatformMock
extends
Doctrine_D
atabase
Platform
class
Doctrine_DatabasePlatformMock
extends
Doctrine_D
BAL_Platforms_Abstract
Platform
{
private
$_prefersIdentityColumns
=
false
;
...
...
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