Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SAMBUMBA
pasteque-server
Commits
cb382351
Commit
cb382351
authored
Nov 09, 2017
by
Karamel
Browse files
Explicitely set the directory for Doctrine proxies to ease deployment in production.
parent
383a26f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/generated/.gitignore
0 → 100644
View file @
cb382351
# Keep this directory to be able to generate proxies, but ignore them.
*
!.gitignore
src/lib/System/DAO/DoctrineDAO.php
View file @
cb382351
...
...
@@ -62,7 +62,8 @@ class DoctrineDAO implements DAO
'host'
=>
$dbInfo
[
'host'
],
'driver'
=>
$driver
,
'charset'
=>
'utf8'
);
$setup
=
Setup
::
createAnnotationMetadataConfiguration
(
$path
,
$isDevMode
);
$setup
=
Setup
::
createAnnotationMetadataConfiguration
(
$path
,
$isDevMode
,
__DIR__
.
'/../../../generated/'
);
$entityManager
=
EntityManager
::
create
(
$dbParams
,
$setup
);
$entityManager2
=
EntityManager
::
create
(
$dbParams
,
$setup
);
$this
->
em
=
$entityManager
;
...
...
Write
Preview
Supports
Markdown
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