Skip to content

Commit

Permalink
Revert "Config: optimize production setup of autogenerating proxies [#…
Browse files Browse the repository at this point in the history
…237]"

This reverts commit 2fbfa9f.
  • Loading branch information
fprochazka committed Apr 19, 2016
1 parent f63bb98 commit bb5bf7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kdyby/Doctrine/DI/OrmExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ protected function processEntityManager($name, array $defaults)
Validators::assertField($config['dql'], 'hints', 'array');

$autoGenerateProxyClasses = is_bool($config['autoGenerateProxyClasses'])
? ($config['autoGenerateProxyClasses'] ? AbstractProxyFactory::AUTOGENERATE_ALWAYS : AbstractProxyFactory::AUTOGENERATE_NEVER)
? ($config['autoGenerateProxyClasses'] ? AbstractProxyFactory::AUTOGENERATE_ALWAYS : AbstractProxyFactory::AUTOGENERATE_FILE_NOT_EXISTS)
: $config['autoGenerateProxyClasses'];

$configuration = $builder->addDefinition($this->prefix($name . '.ormConfiguration'))
Expand Down
1 change: 0 additions & 1 deletion tests/KdybyTests/Doctrine/NonLockingUniqueInserter.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class NonLockingUniqueInserterTest extends KdybyTests\Doctrine\ORMTestCase
public function testSavingRelations()
{
$em = $this->createMemoryManager();
$em->getProxyFactory()->generateProxyClasses($em->getMetadataFactory()->getAllMetadata());

$user = new CmsUser();
$user->username = 'HosipLan';
Expand Down

0 comments on commit bb5bf7b

Please sign in to comment.