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
43dc7eb0
Commit
43dc7eb0
authored
Apr 12, 2010
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DDC-510 - Fix sandbox to work with new annotations metadata changes
parent
317e84d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
cli-config.php
tools/sandbox/cli-config.php
+3
-0
index.php
tools/sandbox/index.php
+3
-0
No files found.
tools/sandbox/cli-config.php
View file @
43dc7eb0
...
...
@@ -10,6 +10,9 @@ $classLoader->register();
$config
=
new
\Doctrine\ORM\Configuration
();
$config
->
setMetadataCacheImpl
(
new
\Doctrine\Common\Cache\ArrayCache
);
$driverImpl
=
$config
->
newDefaultAnnotationDriver
(
array
(
__DIR__
.
"/Entities"
));
$config
->
setMetadataDriverImpl
(
$driverImpl
);
$config
->
setProxyDir
(
__DIR__
.
'/Proxies'
);
$config
->
setProxyNamespace
(
'Proxies'
);
...
...
tools/sandbox/index.php
View file @
43dc7eb0
...
...
@@ -30,11 +30,14 @@ $proxiesClassLoader->register();
$config
=
new
Configuration
;
$cache
=
new
ApcCache
;
$config
->
setMetadataCacheImpl
(
$cache
);
$driverImpl
=
$config
->
newDefaultAnnotationDriver
(
array
(
__DIR__
.
"/Entities"
));
$config
->
setMetadataDriverImpl
(
$driverImpl
);
$config
->
setQueryCacheImpl
(
$cache
);
// Proxy configuration
$config
->
setProxyDir
(
__DIR__
.
'/Proxies'
);
$config
->
setProxyNamespace
(
'Proxies'
);
$config
->
setMetadataCacheImpl
(
new
\Doctrine\Common\Cache\ArrayCache
);
// Database connection information
$connectionOptions
=
array
(
...
...
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