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
0ac97e7a
Commit
0ac97e7a
authored
Jan 24, 2009
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] Making use of new constant __DIR__
parent
9a550358
Changes
36
Show whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
49 additions
and
36 deletions
+49
-36
ActiveEntity.php
lib/Doctrine/ORM/ActiveEntity.php
+1
-1
Configuration.php
lib/Doctrine/ORM/Configuration.php
+12
-1
UnitOfWork.php
lib/Doctrine/ORM/UnitOfWork.php
+2
-0
AllTests.php
tests/Doctrine/Tests/AllTests.php
+1
-1
AllTests.php
tests/Doctrine/Tests/Common/AllTests.php
+1
-1
AllTests.php
tests/Doctrine/Tests/Common/Collections/AllTests.php
+1
-1
CollectionTest.php
tests/Doctrine/Tests/Common/Collections/CollectionTest.php
+1
-1
AllTests.php
tests/Doctrine/Tests/DBAL/AllTests.php
+1
-1
AllTests.php
tests/Doctrine/Tests/DBAL/Component/AllTests.php
+1
-1
TestTest.php
tests/Doctrine/Tests/DBAL/Component/TestTest.php
+1
-1
AllTests.php
tests/Doctrine/Tests/DBAL/Ticket/AllTests.php
+1
-1
Test1.php
tests/Doctrine/Tests/DBAL/Ticket/Test1.php
+1
-1
AllTests.php
tests/Doctrine/Tests/ORM/AllTests.php
+1
-1
AllTests.php
tests/Doctrine/Tests/ORM/Associations/AllTests.php
+1
-1
OneToOneMappingTest.php
...s/Doctrine/Tests/ORM/Associations/OneToOneMappingTest.php
+1
-1
CommitOrderCalculatorTest.php
tests/Doctrine/Tests/ORM/CommitOrderCalculatorTest.php
+1
-1
AllTests.php
tests/Doctrine/Tests/ORM/Entity/AllTests.php
+1
-1
ConstructorTest.php
tests/Doctrine/Tests/ORM/Entity/ConstructorTest.php
+1
-1
EntityManagerTest.php
tests/Doctrine/Tests/ORM/EntityManagerTest.php
+1
-1
EntityPersisterTest.php
tests/Doctrine/Tests/ORM/EntityPersisterTest.php
+1
-1
AllTests.php
tests/Doctrine/Tests/ORM/Functional/AllTests.php
+1
-1
BasicCRUDTest.php
tests/Doctrine/Tests/ORM/Functional/BasicCRUDTest.php
+1
-1
AllTests.php
tests/Doctrine/Tests/ORM/Hydration/AllTests.php
+1
-1
ArrayHydratorTest.php
tests/Doctrine/Tests/ORM/Hydration/ArrayHydratorTest.php
+1
-1
HydrationTest.php
tests/Doctrine/Tests/ORM/Hydration/HydrationTest.php
+1
-1
ObjectHydratorTest.php
tests/Doctrine/Tests/ORM/Hydration/ObjectHydratorTest.php
+1
-1
ScalarHydratorTest.php
tests/Doctrine/Tests/ORM/Hydration/ScalarHydratorTest.php
+1
-1
SingleScalarHydratorTest.php
...Doctrine/Tests/ORM/Hydration/SingleScalarHydratorTest.php
+1
-1
AllTests.php
tests/Doctrine/Tests/ORM/Mapping/AllTests.php
+1
-1
ClassMetadataFactoryTest.php
...s/Doctrine/Tests/ORM/Mapping/ClassMetadataFactoryTest.php
+1
-1
ClassMetadataTest.php
tests/Doctrine/Tests/ORM/Mapping/ClassMetadataTest.php
+1
-1
AllTests.php
tests/Doctrine/Tests/ORM/Query/AllTests.php
+1
-1
IdentifierRecognitionTest.php
tests/Doctrine/Tests/ORM/Query/IdentifierRecognitionTest.php
+1
-1
SelectSqlGenerationTest.php
tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php
+1
-1
UnitOfWorkTest.php
tests/Doctrine/Tests/ORM/UnitOfWorkTest.php
+1
-1
TestInit.php
tests/Doctrine/Tests/TestInit.php
+2
-2
No files found.
lib/Doctrine/ORM/ActiveEntity.php
View file @
0ac97e7a
...
...
@@ -10,7 +10,7 @@
*
* @since 2.0
*/
class
Doctrine_ORM_ActiveEntity
extends
Doctrine_Common_VirtualPropertyObject
implements
Doctrine_ORM_Entity
class
Doctrine_ORM_ActiveEntity
{
/**
* The class descriptor.
...
...
lib/Doctrine/ORM/Configuration.php
View file @
0ac97e7a
...
...
@@ -44,10 +44,21 @@ class Configuration extends \Doctrine\DBAL\Configuration
'resultCacheImpl'
=>
null
,
'queryCacheImpl'
=>
null
,
'metadataCacheImpl'
=>
null
,
'metadataDriverImpl'
=>
new
AnnotationDriver
()
'metadataDriverImpl'
=>
new
AnnotationDriver
(),
'automaticDirtyChecking'
=>
true
));
}
public
function
setAutomaticDirtyChecking
(
$bool
)
{
$this
->
_attributes
[
'automaticDirtyChecking'
]
=
$bool
;
}
public
function
getAutomaticDirtyChecking
()
{
return
$this
->
_attributes
[
'automaticDirtyChecking'
];
}
public
function
setMetadataDriverImpl
(
$driverImpl
)
{
$this
->
_attributes
[
'metadataDriverImpl'
]
=
$driverImpl
;
...
...
lib/Doctrine/ORM/UnitOfWork.php
View file @
0ac97e7a
...
...
@@ -262,6 +262,8 @@ class UnitOfWork
foreach
(
$entities
as
$entity
)
{
$entitySet
[
get_class
(
$entity
)][]
=
$entity
;
}
}
else
if
(
!
$this
->
_em
->
getConfiguration
()
->
getAutomaticDirtyChecking
())
{
//TODO
}
else
{
$entitySet
=
$this
->
_identityMap
;
}
...
...
tests/Doctrine/Tests/AllTests.php
View file @
0ac97e7a
...
...
@@ -10,7 +10,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/TestInit.php'
;
require_once
__DIR__
.
'/TestInit.php'
;
// Suites
#require_once 'Common/AllTests.php';
...
...
tests/Doctrine/Tests/Common/AllTests.php
View file @
0ac97e7a
...
...
@@ -8,7 +8,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Common_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../TestInit.php'
;
require_once
__DIR__
.
'/../TestInit.php'
;
// Suites
#require_once 'Common/Collections/AllTests.php';
...
...
tests/Doctrine/Tests/Common/Collections/AllTests.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Common_Collections_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
// Tests
#require_once 'Common/Collections/CollectionTest.php';
...
...
tests/Doctrine/Tests/Common/Collections/CollectionTest.php
View file @
0ac97e7a
...
...
@@ -4,7 +4,7 @@ namespace Doctrine\Tests\Common\Collections;
use
Doctrine\Tests
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Collection tests.
...
...
tests/Doctrine/Tests/DBAL/AllTests.php
View file @
0ac97e7a
...
...
@@ -9,7 +9,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Dbal_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../TestInit.php'
;
require_once
__DIR__
.
'/../TestInit.php'
;
// Suites
#require_once 'Dbal/Component/AllTests.php';
...
...
tests/Doctrine/Tests/DBAL/Component/AllTests.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Dbal_Component_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
// Tests
#require_once 'Dbal/Component/TestTest.php';
...
...
tests/Doctrine/Tests/DBAL/Component/TestTest.php
View file @
0ac97e7a
...
...
@@ -2,7 +2,7 @@
namespace
Doctrine\Tests\DBAL\Component
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
TestTest
extends
\Doctrine\Tests\DbalTestCase
{
...
...
tests/Doctrine/Tests/DBAL/Ticket/AllTests.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Ticket_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
// Tests
#require_once 'Dbal/Ticket/1Test.php';
...
...
tests/Doctrine/Tests/DBAL/Ticket/Test1.php
View file @
0ac97e7a
...
...
@@ -2,7 +2,7 @@
namespace
Doctrine\Tests\DBAL\Ticket
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
Test1
extends
\Doctrine\Tests\DbalTestCase
{
...
...
tests/Doctrine/Tests/ORM/AllTests.php
View file @
0ac97e7a
...
...
@@ -15,7 +15,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Orm_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../TestInit.php'
;
require_once
__DIR__
.
'/../TestInit.php'
;
class
AllTests
{
...
...
tests/Doctrine/Tests/ORM/Associations/AllTests.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Orm_Associations_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
AllTests
{
...
...
tests/Doctrine/Tests/ORM/Associations/OneToOneMappingTest.php
View file @
0ac97e7a
...
...
@@ -2,7 +2,7 @@
namespace
Doctrine\Tests\ORM\Associations
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
OneToOneMappingTest
extends
\Doctrine\Tests\OrmTestCase
{
...
...
tests/Doctrine/Tests/ORM/CommitOrderCalculatorTest.php
View file @
0ac97e7a
...
...
@@ -2,7 +2,7 @@
namespace
Doctrine\Tests\ORM
;
require_once
dirname
(
__FILE__
)
.
'/../TestInit.php'
;
require_once
__DIR__
.
'/../TestInit.php'
;
/**
* Tests of the commit order calculation.
...
...
tests/Doctrine/Tests/ORM/Entity/AllTests.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Orm_Entity_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
AllTests
...
...
tests/Doctrine/Tests/ORM/Entity/ConstructorTest.php
View file @
0ac97e7a
...
...
@@ -2,7 +2,7 @@
namespace
Doctrine\Tests\ORM\Entity
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
ConstructorTest
extends
\Doctrine\Tests\OrmTestCase
{
...
...
tests/Doctrine/Tests/ORM/EntityManagerTest.php
View file @
0ac97e7a
...
...
@@ -2,7 +2,7 @@
namespace
Doctrine\Tests\ORM
;
require_once
dirname
(
__FILE__
)
.
'/../TestInit.php'
;
require_once
__DIR__
.
'/../TestInit.php'
;
/**
* EntityManager tests.
...
...
tests/Doctrine/Tests/ORM/EntityPersisterTest.php
View file @
0ac97e7a
...
...
@@ -10,7 +10,7 @@ use Doctrine\Tests\Mocks\SequenceMock;
use
Doctrine\Tests\Models\Forum\ForumUser
;
use
Doctrine\Tests\Models\Forum\ForumAvatar
;
require_once
dirname
(
__FILE__
)
.
'/../TestInit.php'
;
require_once
__DIR__
.
'/../TestInit.php'
;
#require_once 'lib/mocks/Doctrine_EntityManagerMock.php';
#require_once 'lib/mocks/Doctrine_ConnectionMock.php';
...
...
tests/Doctrine/Tests/ORM/Functional/AllTests.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Orm_Functional_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
AllTests
{
...
...
tests/Doctrine/Tests/ORM/Functional/BasicCRUDTest.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ use Doctrine\ORM\Export\ClassExporter;
use
Doctrine\Tests\Models\CMS\CmsUser
;
use
Doctrine\Tests\Models\CMS\CmsPhonenumber
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Description of BasicCRUDTest
...
...
tests/Doctrine/Tests/ORM/Hydration/AllTests.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Orm_Hydration_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
AllTests
...
...
tests/Doctrine/Tests/ORM/Hydration/ArrayHydratorTest.php
View file @
0ac97e7a
...
...
@@ -4,7 +4,7 @@ namespace Doctrine\Tests\ORM\Hydration;
use
Doctrine\Tests\Mocks\HydratorMockStatement
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Description of ArrayHydratorTest
...
...
tests/Doctrine/Tests/ORM/Hydration/HydrationTest.php
View file @
0ac97e7a
...
...
@@ -2,7 +2,7 @@
namespace
Doctrine\Tests\ORM\Hydration
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Description of HydrationTest
...
...
tests/Doctrine/Tests/ORM/Hydration/ObjectHydratorTest.php
View file @
0ac97e7a
...
...
@@ -4,7 +4,7 @@ namespace Doctrine\Tests\ORM\Hydration;
use
Doctrine\Tests\Mocks\HydratorMockStatement
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Description of ObjectHydratorTest
...
...
tests/Doctrine/Tests/ORM/Hydration/ScalarHydratorTest.php
View file @
0ac97e7a
...
...
@@ -4,7 +4,7 @@ namespace Doctrine\Tests\ORM\Hydration;
use
Doctrine\Tests\Mocks\HydratorMockStatement
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Description of ScalarHydratorTest
...
...
tests/Doctrine/Tests/ORM/Hydration/SingleScalarHydratorTest.php
View file @
0ac97e7a
...
...
@@ -4,7 +4,7 @@ namespace Doctrine\Tests\ORM\Hydration;
use
Doctrine\Tests\Mocks\HydratorMockStatement
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Description of SingleScalarHydratorTest
...
...
tests/Doctrine/Tests/ORM/Mapping/AllTests.php
View file @
0ac97e7a
...
...
@@ -6,7 +6,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Orm_Mapping_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
AllTests
{
...
...
tests/Doctrine/Tests/ORM/Mapping/ClassMetadataFactoryTest.php
View file @
0ac97e7a
...
...
@@ -10,7 +10,7 @@ use Doctrine\Tests\Mocks\MetadataDriverMock;
use
Doctrine\Tests\Mocks\DatabasePlatformMock
;
use
Doctrine\ORM\Mapping\ClassMetadata
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Description of ClassMetadataFactoryTest
...
...
tests/Doctrine/Tests/ORM/Mapping/ClassMetadataTest.php
View file @
0ac97e7a
...
...
@@ -4,7 +4,7 @@ namespace Doctrine\Tests\ORM\Mapping;
use
Doctrine\ORM\Mapping\ClassMetadata
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
class
ClassMetadataTest
extends
\Doctrine\Tests\OrmTestCase
{
...
...
tests/Doctrine/Tests/ORM/Query/AllTests.php
View file @
0ac97e7a
...
...
@@ -8,7 +8,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
define
(
'PHPUnit_MAIN_METHOD'
,
'Orm_Query_AllTests::main'
);
}
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
#require_once 'IdentifierRecognitionTest.php';
/*require_once 'ScannerTest.php';
...
...
tests/Doctrine/Tests/ORM/Query/IdentifierRecognitionTest.php
View file @
0ac97e7a
...
...
@@ -21,7 +21,7 @@
namespace
Doctrine\Tests\ORM\Query
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Test case for testing the saving and referencing of query identifiers.
...
...
tests/Doctrine/Tests/ORM/Query/SelectSqlGenerationTest.php
View file @
0ac97e7a
...
...
@@ -21,7 +21,7 @@
namespace
Doctrine\Tests\ORM\Query
;
require_once
dirname
(
__FILE__
)
.
'/../../TestInit.php'
;
require_once
__DIR__
.
'/../../TestInit.php'
;
/**
* Test case for testing the saving and referencing of query identifiers.
...
...
tests/Doctrine/Tests/ORM/UnitOfWorkTest.php
View file @
0ac97e7a
...
...
@@ -11,7 +11,7 @@ use Doctrine\Tests\Mocks\IdentityIdGeneratorMock;
use
Doctrine\Tests\Models\Forum\ForumUser
;
use
Doctrine\Tests\Models\Forum\ForumAvatar
;
require_once
dirname
(
__FILE__
)
.
'/../TestInit.php'
;
require_once
__DIR__
.
'/../TestInit.php'
;
#require_once 'lib/mocks/Doctrine_EntityManagerMock.php';
#require_once 'lib/mocks/Doctrine_ConnectionMock.php';
...
...
tests/Doctrine/Tests/TestInit.php
View file @
0ac97e7a
...
...
@@ -13,10 +13,10 @@ $classLoader = new \Doctrine\Common\ClassLoader();
//$classLoader->setCheckFileExists(true);
$classLoader
->
register
();
$modelDir
=
dirname
(
__FILE__
)
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'models'
;
$modelDir
=
__DIR__
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'models'
;
set_include_path
(
get_include_path
()
.
PATH_SEPARATOR
.
dirname
(
__FILE__
)
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'lib'
.
PATH_SEPARATOR
.
__DIR__
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'lib'
.
PATH_SEPARATOR
.
$modelDir
.
DIRECTORY_SEPARATOR
.
'cms'
.
PATH_SEPARATOR
.
$modelDir
.
DIRECTORY_SEPARATOR
.
'company'
.
PATH_SEPARATOR
.
$modelDir
.
DIRECTORY_SEPARATOR
.
'ecommerce'
...
...
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