|
Publicité ' | |||||||||||||||||||||||
|
|
#1 | ||||
|
Membre habitué
![]() Ludovic Étudiant Inscription : janvier 2011 Messages : 124 ![]() |
Bonjour,
Je vous présente mon problème : Je génère mon schéma à partir d'une BDD et je le corrige à la main. Mais voilà, il y a une chose qui ne fonctionne pas. Quand j'ai plusieurs liens vers une même table, Doctrine ne récupère que le dernier objet. Par exemple : sfGuardUserProfile -> Node node_id -> id sfGuardUserProfile -> Node node_leading_id -> id Code :
Donc j'ai décidé de faire un getter dans la classe sfGuardUserProfile : Code :
Code :
Notice: Undefined property: sfGuardUserProfile::$Node in /home/lvielle/workspace/test/lib/model/doctrine/sfForkedDoctrineApplyPlugin/sfGuardUserProfile.class.php on line 27 Call Stack: 0.0001 322212 1. {main}() /home/lvielle/workspace/test/web/main_dev.php:0 0.0768 2759632 2. sfContext->dispatch() /home/lvielle/workspace/test/web/main_dev.php:13 0.0768 2759660 3. sfFrontWebController->dispatch() /home/lvielle/workspace/symfony14/lib/util/sfContext.class.php:170 0.0769 2766244 4. sfController->forward() /home/lvielle/workspace/symfony14/lib/controller/sfFrontWebController.class.php:48 0.0811 2922484 5. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/controller/sfController.class.php:238 0.0814 2923292 6. sfRenderingFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.0814 2923292 7. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/filter/sfRenderingFilter.class.php:33 0.0816 2924072 8. sfExecutionFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.1526 5590692 9. sfExecutionFilter->handleView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:47 0.1526 5590692 10. sfExecutionFilter->executeView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:116 0.1542 5621252 11. sfPHPView->render() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:155 0.1543 5621504 12. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:185 0.1571 5788700 13. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.3712 6718084 14. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php:19 0.3712 6718084 15. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.3717 6721396 16. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.3718 6722364 17. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.3731 6770276 18. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4843 6996448 19. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php:31 0.4843 6996448 20. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.4848 6999400 21. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.4849 7000392 22. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.4859 7049264 23. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4917 7055852 24. sfOutputEscaperIteratorDecorator->getNode() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php:20 0.4917 7055996 25. sfOutputEscaperObjectDecorator->__call() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056228 26. call_user_func_array() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:64 0.4917 7056360 27. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056468 28. Doctrine_Access->__get() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php:0 0.4917 7056468 29. Doctrine_Record->get() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php:72 0.4918 7056864 30. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php:1347 Notice: Trying to get property of non-object in /home/lvielle/workspace/test/lib/model/doctrine/sfForkedDoctrineApplyPlugin/sfGuardUserProfile.class.php on line 27 Call Stack: 0.0001 322212 1. {main}() /home/lvielle/workspace/test/web/main_dev.php:0 0.0768 2759632 2. sfContext->dispatch() /home/lvielle/workspace/test/web/main_dev.php:13 0.0768 2759660 3. sfFrontWebController->dispatch() /home/lvielle/workspace/symfony14/lib/util/sfContext.class.php:170 0.0769 2766244 4. sfController->forward() /home/lvielle/workspace/symfony14/lib/controller/sfFrontWebController.class.php:48 0.0811 2922484 5. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/controller/sfController.class.php:238 0.0814 2923292 6. sfRenderingFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.0814 2923292 7. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/filter/sfRenderingFilter.class.php:33 0.0816 2924072 8. sfExecutionFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.1526 5590692 9. sfExecutionFilter->handleView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:47 0.1526 5590692 10. sfExecutionFilter->executeView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:116 0.1542 5621252 11. sfPHPView->render() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:155 0.1543 5621504 12. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:185 0.1571 5788700 13. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.3712 6718084 14. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php:19 0.3712 6718084 15. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.3717 6721396 16. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.3718 6722364 17. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.3731 6770276 18. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4843 6996448 19. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php:31 0.4843 6996448 20. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.4848 6999400 21. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.4849 7000392 22. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.4859 7049264 23. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4917 7055852 24. sfOutputEscaperIteratorDecorator->getNode() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php:20 0.4917 7055996 25. sfOutputEscaperObjectDecorator->__call() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056228 26. call_user_func_array() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:64 0.4917 7056360 27. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056468 28. Doctrine_Access->__get() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php:0 0.4917 7056468 29. Doctrine_Record->get() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php:72 0.4918 7056864 30. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php:1347 Notice: Trying to get property of non-object in /home/lvielle/workspace/test/lib/model/doctrine/sfForkedDoctrineApplyPlugin/sfGuardUserProfile.class.php on line 27 Call Stack: 0.0001 322212 1. {main}() /home/lvielle/workspace/test/web/main_dev.php:0 0.0768 2759632 2. sfContext->dispatch() /home/lvielle/workspace/test/web/main_dev.php:13 0.0768 2759660 3. sfFrontWebController->dispatch() /home/lvielle/workspace/symfony14/lib/util/sfContext.class.php:170 0.0769 2766244 4. sfController->forward() /home/lvielle/workspace/symfony14/lib/controller/sfFrontWebController.class.php:48 0.0811 2922484 5. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/controller/sfController.class.php:238 0.0814 2923292 6. sfRenderingFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.0814 2923292 7. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/filter/sfRenderingFilter.class.php:33 0.0816 2924072 8. sfExecutionFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.1526 5590692 9. sfExecutionFilter->handleView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:47 0.1526 5590692 10. sfExecutionFilter->executeView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:116 0.1542 5621252 11. sfPHPView->render() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:155 0.1543 5621504 12. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:185 0.1571 5788700 13. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.3712 6718084 14. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php:19 0.3712 6718084 15. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.3717 6721396 16. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.3718 6722364 17. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.3731 6770276 18. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4843 6996448 19. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php:31 0.4843 6996448 20. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.4848 6999400 21. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.4849 7000392 22. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.4859 7049264 23. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4917 7055852 24. sfOutputEscaperIteratorDecorator->getNode() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php:20 0.4917 7055996 25. sfOutputEscaperObjectDecorator->__call() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056228 26. call_user_func_array() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:64 0.4917 7056360 27. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 Notice: Undefined property: sfGuardUserProfile::$Node in /home/lvielle/workspace/test/lib/model/doctrine/sfForkedDoctrineApplyPlugin/sfGuardUserProfile.class.php on line 27 Call Stack: 0.0001 322212 1. {main}() /home/lvielle/workspace/test/web/main_dev.php:0 0.0768 2759632 2. sfContext->dispatch() /home/lvielle/workspace/test/web/main_dev.php:13 0.0768 2759660 3. sfFrontWebController->dispatch() /home/lvielle/workspace/symfony14/lib/util/sfContext.class.php:170 0.0769 2766244 4. sfController->forward() /home/lvielle/workspace/symfony14/lib/controller/sfFrontWebController.class.php:48 0.0811 2922484 5. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/controller/sfController.class.php:238 0.0814 2923292 6. sfRenderingFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.0814 2923292 7. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/filter/sfRenderingFilter.class.php:33 0.0816 2924072 8. sfExecutionFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.1526 5590692 9. sfExecutionFilter->handleView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:47 0.1526 5590692 10. sfExecutionFilter->executeView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:116 0.1542 5621252 11. sfPHPView->render() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:155 0.1543 5621504 12. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:185 0.1571 5788700 13. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.3712 6718084 14. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php:19 0.3712 6718084 15. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.3717 6721396 16. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.3718 6722364 17. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.3731 6770276 18. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4843 6996448 19. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php:31 0.4843 6996448 20. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.4848 6999400 21. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.4849 7000392 22. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.4859 7049264 23. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4917 7055852 24. sfOutputEscaperIteratorDecorator->getNode() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php:20 0.4917 7055996 25. sfOutputEscaperObjectDecorator->__call() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056228 26. call_user_func_array() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:64 0.4917 7056360 27. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056468 28. Doctrine_Access->__get() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php:0 0.4917 7056468 29. Doctrine_Record->get() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php:72 0.4918 7056864 30. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php:1347 Notice: Trying to get property of non-object in /home/lvielle/workspace/test/lib/model/doctrine/sfForkedDoctrineApplyPlugin/sfGuardUserProfile.class.php on line 27 Call Stack: 0.0001 322212 1. {main}() /home/lvielle/workspace/test/web/main_dev.php:0 0.0768 2759632 2. sfContext->dispatch() /home/lvielle/workspace/test/web/main_dev.php:13 0.0768 2759660 3. sfFrontWebController->dispatch() /home/lvielle/workspace/symfony14/lib/util/sfContext.class.php:170 0.0769 2766244 4. sfController->forward() /home/lvielle/workspace/symfony14/lib/controller/sfFrontWebController.class.php:48 0.0811 2922484 5. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/controller/sfController.class.php:238 0.0814 2923292 6. sfRenderingFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.0814 2923292 7. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/filter/sfRenderingFilter.class.php:33 0.0816 2924072 8. sfExecutionFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.1526 5590692 9. sfExecutionFilter->handleView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:47 0.1526 5590692 10. sfExecutionFilter->executeView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:116 0.1542 5621252 11. sfPHPView->render() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:155 0.1543 5621504 12. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:185 0.1571 5788700 13. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.3712 6718084 14. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php:19 0.3712 6718084 15. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.3717 6721396 16. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.3718 6722364 17. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.3731 6770276 18. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4843 6996448 19. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php:31 0.4843 6996448 20. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.4848 6999400 21. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.4849 7000392 22. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.4859 7049264 23. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4917 7055852 24. sfOutputEscaperIteratorDecorator->getNode() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php:20 0.4917 7055996 25. sfOutputEscaperObjectDecorator->__call() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056228 26. call_user_func_array() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:64 0.4917 7056360 27. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056468 28. Doctrine_Access->__get() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php:0 0.4917 7056468 29. Doctrine_Record->get() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Access.php:72 0.4918 7056864 30. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php:1347 Notice: Trying to get property of non-object in /home/lvielle/workspace/test/lib/model/doctrine/sfForkedDoctrineApplyPlugin/sfGuardUserProfile.class.php on line 27 Call Stack: 0.0001 322212 1. {main}() /home/lvielle/workspace/test/web/main_dev.php:0 0.0768 2759632 2. sfContext->dispatch() /home/lvielle/workspace/test/web/main_dev.php:13 0.0768 2759660 3. sfFrontWebController->dispatch() /home/lvielle/workspace/symfony14/lib/util/sfContext.class.php:170 0.0769 2766244 4. sfController->forward() /home/lvielle/workspace/symfony14/lib/controller/sfFrontWebController.class.php:48 0.0811 2922484 5. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/controller/sfController.class.php:238 0.0814 2923292 6. sfRenderingFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.0814 2923292 7. sfFilterChain->execute() /home/lvielle/workspace/symfony14/lib/filter/sfRenderingFilter.class.php:33 0.0816 2924072 8. sfExecutionFilter->execute() /home/lvielle/workspace/symfony14/lib/filter/sfFilterChain.class.php:53 0.1526 5590692 9. sfExecutionFilter->handleView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:47 0.1526 5590692 10. sfExecutionFilter->executeView() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:116 0.1542 5621252 11. sfPHPView->render() /home/lvielle/workspace/symfony14/lib/filter/sfExecutionFilter.class.php:155 0.1543 5621504 12. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:185 0.1571 5788700 13. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.3712 6718084 14. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/indexSuccess.php:19 0.3712 6718084 15. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.3717 6721396 16. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.3718 6722364 17. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.3731 6770276 18. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4843 6996448 19. include_partial() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list.php:31 0.4843 6996448 20. get_partial() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:180 0.4848 6999400 21. sfPartialView->render() /home/lvielle/workspace/symfony14/lib/helper/PartialHelper.php:218 0.4849 7000392 22. sfPHPView->renderFile() /home/lvielle/workspace/symfony14/lib/view/sfPartialView.class.php:124 0.4859 7049264 23. require('/home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php') /home/lvielle/workspace/symfony14/lib/view/sfPHPView.class.php:75 0.4917 7055852 24. sfOutputEscaperIteratorDecorator->getNode() /home/lvielle/workspace/test/cache/main/dev/modules/autoProfile/templates/_list_td_tabular.php:20 0.4917 7055996 25. sfOutputEscaperObjectDecorator->__call() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 0.4917 7056228 26. call_user_func_array() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:64 0.4917 7056360 27. sfGuardUserProfile->getNode() /home/lvielle/workspace/symfony14/lib/escaper/sfOutputEscaperObjectDecorator.class.php:0 |
||||
|
|
00
|
|
|
#2 |
![]() ![]() Michel RottaResponsable d'exploitation informatique Inscription : septembre 2005 Messages : 4 913 ![]() |
Il faut créer le shema.yml pour avoir une base de données
et pas créer une base de données pour avoir un shema.yml. Reprends le shema.yml, faisant quelque chose qui correspond à ce que tu veux, génères ta base à partir de ce fichier et contemples ton application qui fonctionne... enfin presque, juste quelques écrans qui restent à dessiner
__________________
Si tu donnes un poisson à un homme, il mangera un jour. Si tu lui apprends à pêcher, il mangera toujours (Lao Tseu).
|
|
00
|
|
|
#3 |
|
Membre habitué
![]() Ludovic Étudiant Inscription : janvier 2011 Messages : 124 ![]() |
Je l'ai repris de zéro pratiquement, les seules choses que je garde c'est les nom des champs, des classes etc. J'ai repris toutes les relations à la main mais je n'arrive pas à faire fonctionner ce type de relation.
|
|
|
00
|
|
|
#4 | ||
![]() ![]() Michel RottaResponsable d'exploitation informatique Inscription : septembre 2005 Messages : 4 913 ![]() |
Revu à "ma façon"
Code :
__________________
Si tu donnes un poisson à un homme, il mangera un jour. Si tu lui apprends à pêcher, il mangera toujours (Lao Tseu).
|
||
|
00
|
|
|
#5 |
|
Membre habitué
![]() Ludovic Étudiant Inscription : janvier 2011 Messages : 124 ![]() |
Pour les relations many-to-many, j'ai fait comme dans la doc (http://www.doctrine-project.org/proj...s:many-to-many) et comme dans jobeet. Celles-ci fonctionnent bien par contre le double lien vers la même table ne fonctionne pas même après correction comme tu as fait. Toujours la même erreur.
|
|
|
00
|
|
|
#6 |
![]() ![]() Michel RottaResponsable d'exploitation informatique Inscription : septembre 2005 Messages : 4 913 ![]() |
Le geter est automatiquement généré lors du build.
Si tu en fais un toi même, tu détruis celui généré (qui lui doit fonctionner). Ton geter fait référence à une propriété node qui ne correspond à rien. Supprimes ta méthode. Pour les relations n-n, je n'en ai jamais déclaré de cette manière, les miennes marchent. Si celle-ci marche aussi, tant mieux. Mais il faudrait avoir l'ensemble de la déclaration (les trois tables en cause) pour pouvoir juger.
__________________
Si tu donnes un poisson à un homme, il mangera un jour. Si tu lui apprends à pêcher, il mangera toujours (Lao Tseu).
|
|
00
|
|
|
#7 |
|
Membre habitué
![]() Ludovic Étudiant Inscription : janvier 2011 Messages : 124 ![]() |
Sans mon getter, je n'ai rien qui s'affiche dans ma colonne. Si je met node_id, j'ai les bonnes ids qui sont dans la BDD qui s'affiche.
|
|
|
00
|
|
|
#8 |
|
Membre habitué
![]() Ludovic Étudiant Inscription : janvier 2011 Messages : 124 ![]() |
Je pense avoir trouver mon erreur, node est un mot réservé pour doctrine je pense (notion d'arbre et de hiérarchie). Je vais essayé de changer le nom de la table.
Edit: C'était bien ça le problème. J'ai renommé la classe et la table est ça fonctionne. |
|
|
00
|
|
|
#9 |
![]() ![]() Michel RottaResponsable d'exploitation informatique Inscription : septembre 2005 Messages : 4 913 ![]() |
C'est une piste.
Regardes si tu as le code correspondant dans l'objet de base, en fait tu n'as que la déclaration du nom pour les IDE, cela devrait ressembler à : Code :
* @method Doctrine_Collection getNode)
__________________
Si tu donnes un poisson à un homme, il mangera un jour. Si tu lui apprends à pêcher, il mangera toujours (Lao Tseu).
|
|
00
|
|
|
#10 |
|
Membre habitué
![]() Ludovic Étudiant Inscription : janvier 2011 Messages : 124 ![]() |
Oui, quand j'essayai de créer le getter getNode(), il me le proposait, mais il me proposait aussi une autre méthode getNode() de l'objet Doctrine_Record et c'est ce qui m'a mis la puce à l'oreille pour le conflit de nom.
|
|
|
00
|
|
|
#11 |
![]() ![]() Michel RottaResponsable d'exploitation informatique Inscription : septembre 2005 Messages : 4 913 ![]() |
Bonne puce, heu, bonne pioche !
Ca marche avec un autre nom ?
__________________
Si tu donnes un poisson à un homme, il mangera un jour. Si tu lui apprends à pêcher, il mangera toujours (Lao Tseu).
|
|
00
|
|
|
#12 |
|
Membre habitué
![]() Ludovic Étudiant Inscription : janvier 2011 Messages : 124 ![]() |
J'ai changé le nom de la classe et de la table et ça fonctionne bien. Normalement, il me semble que dans la doc il est dit qu'il ne faut pas donner de noms réservés au table mais j'ai essayé et ça ne fonctionnait pas donc j'ai changé celui de la classe aussi.
|
|
|
00
|
Copyright © 2000-2012 - www.developpez.com