Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/05/2015, 09:21
Karmo
 
Fecha de Ingreso: marzo-2005
Mensajes: 51
Antigüedad: 19 años, 8 meses
Puntos: 0
Respuesta: Problemas formularios y collections entorno producción

Tengo la BD creada y generada. La aplicación corre perfectamente salvo cuando entra en un twig que contiene un form con su form collection. En DEV funciona (y no da errores) pero en PROD no muestra la página, da un error 500.

(a todo esto, cuando hago un cache clear me dice que no puede ya que no se ha encontrado lla entidad "collection" (y realmente no existe, nunca le ha definido). Pero en la entidad de la colección de formularios tengo esto:

public function __construct()
{
$this->comprasReferences = new \Doctrine\Common\Collections\ArrayCollection();
}

public function setComprasReferences(\Doctrine\Common\Collections\Collection $comprasReferences)
{
$this->comprasReferences = $comprasReferences;
foreach ($comprasReferences as $comprasReferences) {
$comprasReferences->setCompras($this);
}
}


De los logs saco lo siguiente:

127.0.0.1 - - [04/May/2015:17:20:10 +0200] "GET /app.php/compras/add HTTP/1.1" 500 -

[Mon May 04 17:20:10.711453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP Warning: require(D:/user/htdocs/inet-almacen/app/cache/prod/doctrine/orm/Proxies\\__CG__AlmacenAlmacenBundleEntityfamily.ph p): failed to open stream: No such file or directory in D:\\user\\htdocs\\inet-almacen\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM \\Proxy\\ProxyFactory.php on line 92
[Mon May 04 17:20:10.711453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP Stack trace:
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 1. {main}() D:\\user\\htdocs\\inet-almacen\\web\\app.php:0
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 2. Symfony\\Component\\HttpKernel\\Kernel->handle() D:\\user\\htdocs\\inet-almacen\\web\\app.php:22
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 3. Symfony\\Component\\HttpKernel\\DependencyInjectio n\\ContainerAwareHttpKernel->handle() D:\\user\\htdocs\\inet-almacen\\app\\bootstrap.php.cache:411
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 4. Symfony\\Component\\HttpKernel\\HttpKernel->handle() D:\\user\\htdocs\\inet-almacen\\app\\bootstrap.php.cache:1101
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 5. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() D:\\user\\htdocs\\inet-almacen\\app\\bootstrap.php.cache:975
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 6. call_user_func_array() D:\\user\\htdocs\\inet-almacen\\app\\bootstrap.php.cache:1001
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 7. Almacen\\AlmacenBundle\\Controller\\AdminControlle r->comprasAddAction() D:\\user\\htdocs\\inet-almacen\\app\\bootstrap.php.cache:1001
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 8. Symfony\\Component\\Form\\Form->createView() D:\\user\\htdocs\\inet-almacen\\src\\Almacen\\AlmacenBundle\\Controller\\ AdminController.php:658
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 9. Symfony\\Component\\Form\\ResolvedFormType->createView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\Form.php:1047
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 10. Symfony\\Component\\Form\\Form->createView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\ResolvedFormType.php:144
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 11. Symfony\\Component\\Form\\ResolvedFormType->createView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\Form.php:1047
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 12. Symfony\\Component\\Form\\ResolvedFormType->buildView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\ResolvedFormType.php:140
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 13. Symfony\\Component\\Form\\Extension\\Core\\Type\\C ollectionType->buildView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\ResolvedFormType.php:193
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 14. Symfony\\Component\\Form\\Form->createView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\Extension\\Core\\Type\\CollectionT ype.php:57
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 15. Symfony\\Component\\Form\\ResolvedFormType->createView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\Form.php:1047
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 16. Symfony\\Component\\Form\\Form->createView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\ResolvedFormType.php:144
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 17. Symfony\\Component\\Form\\ResolvedFormType->createView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\Form.php:1047
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 18. Symfony\\Component\\Form\\ResolvedFormType->buildView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\ResolvedFormType.php:140
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 19. Symfony\\Component\\Form\\ResolvedFormType->buildView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\ResolvedFormType.php:190
[Mon May 04 17:20:10.712453 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 20. Symfony\\Component\\Form\\Extension\\Core\\Type\\C hoiceType->buildView() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\C omponent\\Form\\ResolvedFormType.php:193
.........
..........
..........
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 22. Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\Entit yChoiceList->load() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\B ridge\\Doctrine\\Form\\ChoiceList\\EntityChoiceLis t.php:173
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 23. Doctrine\\ORM\\EntityRepository->findAll() D:\\user\\htdocs\\inet-almacen\\vendor\\symfony\\symfony\\src\\Symfony\\B ridge\\Doctrine\\Form\\ChoiceList\\EntityChoiceLis t.php:385
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 24. Doctrine\\ORM\\EntityRepository->findBy() D:\\user\\htdocs\\inet-almacen\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM \\EntityRepository.php:141
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 25. Doctrine\\ORM\\Persisters\\BasicEntityPersister->loadAll() D:\\user\\htdocs\\inet-almacen\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM \\EntityRepository.php:157
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 26. Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrat or->hydrateAll() D:\\user\\htdocs\\inet-almacen\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM \\Persisters\\BasicEntityPersister.php:848
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 27. Doctrine\\ORM\\Internal\\Hydration\\SimpleObjectHy drator->hydrateAllData() D:\\user\\htdocs\\inet-almacen\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM \\Internal\\Hydration\\AbstractHydrator.php:111
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 28. Doctrine\\ORM\\Internal\\Hydration\\SimpleObjectHy drator->hydrateRowData() D:\\user\\htdocs\\inet-almacen\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM \\Internal\\Hydration\\SimpleObjectHydrator.php:50
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 29. Doctrine\\ORM\\UnitOfWork->createEntity() D:\\user\\htdocs\\inet-almacen\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM \\Internal\\Hydration\\SimpleObjectHydrator.php:13 5
[Mon May 04 17:20:10.713454 2015] [:error] [pid 4332:tid 1824] [client 127.0.0.1:50895] PHP 30. Doctrine\\ORM\\Proxy\\ProxyFactory->getProxy() D:\\user\\htdocs\\inet-almacen\\vendor\\doctrine\\orm\\lib\\Doctrine\\ORM \\UnitOfWork.php:2590