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
cdc102fc
Commit
cdc102fc
authored
Jul 16, 2009
by
piccoloprincipe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0] renamed classes to more descriptive names
parent
a41bbbd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
EntityManager.php
lib/Doctrine/ORM/EntityManager.php
+3
-3
ProxyClassGenerator.php
lib/Doctrine/ORM/Proxy/ProxyClassGenerator.php
+4
-3
ProxyFactory.php
lib/Doctrine/ORM/Proxy/ProxyFactory.php
+4
-3
No files found.
lib/Doctrine/ORM/EntityManager.php
View file @
cdc102fc
...
@@ -26,8 +26,8 @@ use Doctrine\Common\DoctrineException;
...
@@ -26,8 +26,8 @@ use Doctrine\Common\DoctrineException;
use
Doctrine\DBAL\Connection
;
use
Doctrine\DBAL\Connection
;
use
Doctrine\ORM\Mapping\ClassMetadata
;
use
Doctrine\ORM\Mapping\ClassMetadata
;
use
Doctrine\ORM\Mapping\ClassMetadataFactory
;
use
Doctrine\ORM\Mapping\ClassMetadataFactory
;
use
Doctrine\ORM\
DynamicProxy\Factory
as
ProxyFactory
;
use
Doctrine\ORM\
Proxy\
ProxyFactory
;
use
Doctrine\ORM\
DynamicProxy\
Generator
;
use
Doctrine\ORM\
Proxy\ProxyClass
Generator
;
/**
/**
* The EntityManager is the central access point to ORM functionality.
* The EntityManager is the central access point to ORM functionality.
...
@@ -147,7 +147,7 @@ class EntityManager
...
@@ -147,7 +147,7 @@ class EntityManager
$this
->
_metadataFactory
->
setCacheDriver
(
$this
->
_config
->
getMetadataCacheImpl
());
$this
->
_metadataFactory
->
setCacheDriver
(
$this
->
_config
->
getMetadataCacheImpl
());
$this
->
_unitOfWork
=
new
UnitOfWork
(
$this
);
$this
->
_unitOfWork
=
new
UnitOfWork
(
$this
);
//FIX: this should be in a factory
//FIX: this should be in a factory
$this
->
_proxyFactory
=
new
ProxyFactory
(
$this
,
new
Generator
(
$this
,
$this
->
_config
->
getCacheDir
()));
$this
->
_proxyFactory
=
new
ProxyFactory
(
$this
,
new
ProxyClass
Generator
(
$this
,
$this
->
_config
->
getCacheDir
()));
}
}
/**
/**
...
...
lib/Doctrine/ORM/
DynamicProxy/
Generator.php
→
lib/Doctrine/ORM/
Proxy/ProxyClass
Generator.php
View file @
cdc102fc
...
@@ -19,17 +19,18 @@
...
@@ -19,17 +19,18 @@
* <http://www.doctrine-project.org>.
* <http://www.doctrine-project.org>.
*/
*/
namespace
Doctrine\ORM\
Dynamic
Proxy
;
namespace
Doctrine\ORM\Proxy
;
use
Doctrine\ORM\EntityManager
;
use
Doctrine\ORM\EntityManager
;
use
Doctrine\ORM\Mapping\ClassMetadata
;
use
Doctrine\ORM\Mapping\ClassMetadata
;
/**
/**
* The
DynamicProxy
Generator is used to generate proxy objects for entities at runtime.
* The
ProxyClass
Generator is used to generate proxy objects for entities at runtime.
*
*
* @author Roman Borschel <roman@code-factory.org>
* @author Roman Borschel <roman@code-factory.org>
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>
* @since 2.0
* @since 2.0
*/
*/
class
Generator
class
ProxyClass
Generator
{
{
/** The namespace for the generated proxy classes. */
/** The namespace for the generated proxy classes. */
private
static
$_ns
=
'Doctrine\Generated\Proxies\\'
;
private
static
$_ns
=
'Doctrine\Generated\Proxies\\'
;
...
...
lib/Doctrine/ORM/
DynamicProxy/
Factory.php
→
lib/Doctrine/ORM/
Proxy/Proxy
Factory.php
View file @
cdc102fc
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
* <http://www.doctrine-project.org>.
* <http://www.doctrine-project.org>.
*/
*/
namespace
Doctrine\ORM\
Dynamic
Proxy
;
namespace
Doctrine\ORM\Proxy
;
use
Doctrine\ORM\EntityManager
;
use
Doctrine\ORM\EntityManager
;
...
@@ -27,9 +27,10 @@ use Doctrine\ORM\EntityManager;
...
@@ -27,9 +27,10 @@ use Doctrine\ORM\EntityManager;
* This Factory is used to create proxy objects for entities at runtime.
* This Factory is used to create proxy objects for entities at runtime.
*
*
* @author Roman Borschel <roman@code-factory.org>
* @author Roman Borschel <roman@code-factory.org>
* @author Giorgio Sironi <piccoloprincipeazzurro@gmail.com>
* @since 2.0
* @since 2.0
*/
*/
class
Factory
class
Proxy
Factory
{
{
private
$_em
;
private
$_em
;
private
$_generator
;
private
$_generator
;
...
@@ -42,7 +43,7 @@ class Factory
...
@@ -42,7 +43,7 @@ class Factory
* @param EntityManager $em
* @param EntityManager $em
* @param Generator $generator
* @param Generator $generator
*/
*/
public
function
__construct
(
EntityManager
$em
,
Generator
$generator
)
public
function
__construct
(
EntityManager
$em
,
ProxyClass
Generator
$generator
)
{
{
$this
->
_em
=
$em
;
$this
->
_em
=
$em
;
$this
->
_generator
=
$generator
;
$this
->
_generator
=
$generator
;
...
...
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