Use $applicationMode flag in obtaining entity manager example to make sure people understand that different settings for production and development are necessary
This commit is contained in:
parent
974e31a307
commit
f8c22abaa6
@ -102,7 +102,7 @@ with the following minimalist configuration:
|
||||
if ($applicationMode == "development") {
|
||||
$config->setAutoGenerateProxyClasses(true);
|
||||
} else {
|
||||
$config->setAutoGenerateProxyClasses(true);
|
||||
$config->setAutoGenerateProxyClasses(false);
|
||||
}
|
||||
|
||||
$connectionOptions = array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user