[symfony-users] Re: AdminBundle
This should be fixed, see https://github.com/sonata-project/AdminBundle/issues/133 On Wed, Jun 15, 2011 at 9:24 AM, mrdev bbergst...@gmail.com wrote: Hi, i'm stuck for a while now on this. the admin works for my user entity but doesn't with my others entity. here's the error i get : [2/2] Twig_Error_Runtime: An exception has been thrown during the rendering of a template (Route admin_mr_start_mrdiploma_create does not exist.) in SonataAdminBundle:Core:dashboard.html.twig at line 30. -+ [1/2] RouteNotFoundException: Route admin_mr_start_mrdiploma_create does not exist. - here's my config : services: mr.start.admin.user: class: Mr\StartBundle\Admin\MrUserAdmin tags: - { name: sonata.admin, manager_type: orm, group: mr_user, label: mr_user } arguments: [null, Mr\StartBundle\Entity\MrUser, MrStartBundle:MrUserAdmin] mr.start.admin.diploma: class: Mr\StartBundle\Admin\MrDiplomaAdmin tags: - { name: sonata.admin, manager_type: orm, group: mr_diploma, label: mr_diploma } arguments: [null, Mr\StartBundle\Entity\MrDiploma, null] works for MrUser if i remove the MrDiploma config... any idea ? thanks Benoît -- Thomas Rabaix http://rabaix.net -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: AdminBundle
ohoh, my mind is too complicated ! thanks 2011/6/15 Thomas Rabaix thomas.rab...@gmail.com This should be fixed, see https://github.com/sonata-project/AdminBundle/issues/133 On Wed, Jun 15, 2011 at 9:24 AM, mrdev bbergst...@gmail.com wrote: Hi, i'm stuck for a while now on this. the admin works for my user entity but doesn't with my others entity. here's the error i get : [2/2] Twig_Error_Runtime: An exception has been thrown during the rendering of a template (Route admin_mr_start_mrdiploma_create does not exist.) in SonataAdminBundle:Core:dashboard.html.twig at line 30. -+ [1/2] RouteNotFoundException: Route admin_mr_start_mrdiploma_create does not exist. - here's my config : services: mr.start.admin.user: class: Mr\StartBundle\Admin\MrUserAdmin tags: - { name: sonata.admin, manager_type: orm, group: mr_user, label: mr_user } arguments: [null, Mr\StartBundle\Entity\MrUser, MrStartBundle:MrUserAdmin] mr.start.admin.diploma: class: Mr\StartBundle\Admin\MrDiplomaAdmin tags: - { name: sonata.admin, manager_type: orm, group: mr_diploma, label: mr_diploma } arguments: [null, Mr\StartBundle\Entity\MrDiploma, null] works for MrUser if i remove the MrDiploma config... any idea ? thanks Benoît -- Thomas Rabaix http://rabaix.net -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10
The arguments signature has changed. You must add null as first argument. The white page is not normal, if you are in dev mode you should see an error stack On 11 avr. 2011, at 11:34, seven seven wrote: On my side the problem is that I don't receive any error. I am getting an empty admin page when accessing /admin/dashboard. I have this defined in my config.yml file: services: tock.tockflatpages.admin.grouppageengine: class: Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin tags: - { name: tock.admin, manager_type: orm, group: tock_flatpages, label: flatpages } arguments: [Tock\TockFlatPagesBundle\Entity\GroupPageEngine, TockTockFlatPagesBundle:GroupPageEngineAdmin] Also I am using gedmo doctrineExtensions for my entity, could that be the cause ? On Mon, Apr 11, 2011 at 1:07 AM, Christophe COEVOET s...@notk.org wrote: Le 10/04/2011 23:49, Malc a écrit : Basically it's working, but I always get some of the following error's: Catchable fatal error: Object of class could not be converted to string in src\web\vendor\symfony\src\Symfony\Component\Form \EntityChoiceField.php on line 243. Can anybody tell me , how to fix that ? Did I forget something to configure ? Should I convert the objects to strings ? thx, Malc You have to choice: - say to your EntityChoiceField to use a given property of the entity - implement __toString to make your class castable as string Read the doc about the EntityChoiceField: http://symfony.com/doc/2.0/book/doctrine/orm/form.html -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10
You mean like this : arguments: [null, TockTockFlatPagesBundle:GroupPageEngineAdmin] ? I am in dev mode, ah I was referring that no fields are present, the Admin template is there on the page, like there is no entity attached On Mon, Apr 11, 2011 at 12:51 PM, Thomas Rabaix thomas.rab...@gmail.comwrote: The arguments signature has changed. You must add null as first argument. The white page is not normal, if you are in dev mode you should see an error stack On 11 avr. 2011, at 11:34, seven seven wrote: On my side the problem is that I don't receive any error. I am getting an empty admin page when accessing /admin/dashboard. I have this defined in my config.yml file: services: tock.tockflatpages.admin.grouppageengine: class: Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin tags: - { name: tock.admin, manager_type: orm, group: tock_flatpages, label: flatpages } arguments: [Tock\TockFlatPagesBundle\Entity\GroupPageEngine, TockTockFlatPagesBundle:GroupPageEngineAdmin] Also I am using gedmo doctrineExtensions for my entity, could that be the cause ? On Mon, Apr 11, 2011 at 1:07 AM, Christophe COEVOET s...@notk.org wrote: Le 10/04/2011 23:49, Malc a écrit : Basically it's working, but I always get some of the following error's: Catchable fatal error: Object of class could not be converted to string in src\web\vendor\symfony\src\Symfony\Component\Form \EntityChoiceField.php on line 243. Can anybody tell me , how to fix that ? Did I forget something to configure ? Should I convert the objects to strings ? thx, Malc You have to choice: - say to your EntityChoiceField to use a given property of the entity - implement __toString to make your class castable as string Read the doc about the EntityChoiceField: http://symfony.com/doc/2.0/book/doctrine/orm/form.html -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10
The tag name is not valid. And it is how you should declare the arguments : arguments: [null, Tock\TockFlatPagesBundle\Entity\GroupPageEngine, TockTockFlatPagesBundle:GroupPageEngineAdmin] On 11 avr. 2011, at 11:56, seven seven wrote: You mean like this : arguments: [null, TockTockFlatPagesBundle:GroupPageEngineAdmin] ? I am in dev mode, ah I was referring that no fields are present, the Admin template is there on the page, like there is no entity attached On Mon, Apr 11, 2011 at 12:51 PM, Thomas Rabaix thomas.rab...@gmail.comwrote: The arguments signature has changed. You must add null as first argument. The white page is not normal, if you are in dev mode you should see an error stack On 11 avr. 2011, at 11:34, seven seven wrote: On my side the problem is that I don't receive any error. I am getting an empty admin page when accessing /admin/dashboard. I have this defined in my config.yml file: services: tock.tockflatpages.admin.grouppageengine: class: Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin tags: - { name: tock.admin, manager_type: orm, group: tock_flatpages, label: flatpages } arguments: [Tock\TockFlatPagesBundle\Entity\GroupPageEngine, TockTockFlatPagesBundle:GroupPageEngineAdmin] Also I am using gedmo doctrineExtensions for my entity, could that be the cause ? On Mon, Apr 11, 2011 at 1:07 AM, Christophe COEVOET s...@notk.org wrote: Le 10/04/2011 23:49, Malc a écrit : Basically it's working, but I always get some of the following error's: Catchable fatal error: Object of class could not be converted to string in src\web\vendor\symfony\src\Symfony\Component\Form \EntityChoiceField.php on line 243. Can anybody tell me , how to fix that ? Did I forget something to configure ? Should I convert the objects to strings ? thx, Malc You have to choice: - say to your EntityChoiceField to use a given property of the entity - implement __toString to make your class castable as string Read the doc about the EntityChoiceField: http://symfony.com/doc/2.0/book/doctrine/orm/form.html -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10
Thanks ! That push me into a different area. I get an exception : RuntimeException: Please define a default `baseRouteName` value for the admin class `Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin and also an error : FileLoaderImportException: Cannot import resource 'C:\\xampp\\htdocs\\mc1\\app/config\\.' from 'C:\\xampp\\htdocs\\mc1\\app/config\\routing.yml' and if I define a baseRootName and baseRoutePattern in my GroupPageEngineAdmin class I can see my Entity on the list from dashboard, but when I click on create or list I get the following exception: The service tock\tockflatpagesbundle\entity\grouppageengine does not exist. On Mon, Apr 11, 2011 at 1:12 PM, Thomas Rabaix thomas.rab...@gmail.comwrote: The tag name is not valid. And it is how you should declare the arguments : arguments: [null, Tock\TockFlatPagesBundle\Entity\GroupPageEngine, TockTockFlatPagesBundle:GroupPageEngineAdmin] On 11 avr. 2011, at 11:56, seven seven wrote: You mean like this : arguments: [null, TockTockFlatPagesBundle:GroupPageEngineAdmin] ? I am in dev mode, ah I was referring that no fields are present, the Admin template is there on the page, like there is no entity attached On Mon, Apr 11, 2011 at 12:51 PM, Thomas Rabaix thomas.rab...@gmail.com wrote: The arguments signature has changed. You must add null as first argument. The white page is not normal, if you are in dev mode you should see an error stack On 11 avr. 2011, at 11:34, seven seven wrote: On my side the problem is that I don't receive any error. I am getting an empty admin page when accessing /admin/dashboard. I have this defined in my config.yml file: services: tock.tockflatpages.admin.grouppageengine: class: Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin tags: - { name: tock.admin, manager_type: orm, group: tock_flatpages, label: flatpages } arguments: [Tock\TockFlatPagesBundle\Entity\GroupPageEngine, TockTockFlatPagesBundle:GroupPageEngineAdmin] Also I am using gedmo doctrineExtensions for my entity, could that be the cause ? On Mon, Apr 11, 2011 at 1:07 AM, Christophe COEVOET s...@notk.org wrote: Le 10/04/2011 23:49, Malc a écrit : Basically it's working, but I always get some of the following error's: Catchable fatal error: Object of class could not be converted to string in src\web\vendor\symfony\src\Symfony\Component\Form \EntityChoiceField.php on line 243. Can anybody tell me , how to fix that ? Did I forget something to configure ? Should I convert the objects to strings ? thx, Malc You have to choice: - say to your EntityChoiceField to use a given property of the entity - implement __toString to make your class castable as string Read the doc about the EntityChoiceField: http://symfony.com/doc/2.0/book/doctrine/orm/form.html -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at
Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10
Ok I'm stuck :( I didn't figure out why it does not find my entity . It only have my Entity classes manually written including my getters and setters , without running the doctrine:generate:entities command. I am asking if is there absolutely necessary of having XML or YML mapping of my entities in order to work with AdminBundle ? It shouldn't work that way but I am asking ... On Mon, Apr 11, 2011 at 2:17 PM, seven seven sapt...@gmail.com wrote: Thanks ! That push me into a different area. I get an exception : RuntimeException: Please define a default `baseRouteName` value for the admin class `Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin and also an error : FileLoaderImportException: Cannot import resource 'C:\\xampp\\htdocs\\mc1\\app/config\\.' from 'C:\\xampp\\htdocs\\mc1\\app/config\\routing.yml' and if I define a baseRootName and baseRoutePattern in my GroupPageEngineAdmin class I can see my Entity on the list from dashboard, but when I click on create or list I get the following exception: The service tock\tockflatpagesbundle\entity\grouppageengine does not exist. On Mon, Apr 11, 2011 at 1:12 PM, Thomas Rabaix thomas.rab...@gmail.comwrote: The tag name is not valid. And it is how you should declare the arguments : arguments: [null, Tock\TockFlatPagesBundle\Entity\GroupPageEngine, TockTockFlatPagesBundle:GroupPageEngineAdmin] On 11 avr. 2011, at 11:56, seven seven wrote: You mean like this : arguments: [null, TockTockFlatPagesBundle:GroupPageEngineAdmin] ? I am in dev mode, ah I was referring that no fields are present, the Admin template is there on the page, like there is no entity attached On Mon, Apr 11, 2011 at 12:51 PM, Thomas Rabaix thomas.rab...@gmail.comwrote: The arguments signature has changed. You must add null as first argument. The white page is not normal, if you are in dev mode you should see an error stack On 11 avr. 2011, at 11:34, seven seven wrote: On my side the problem is that I don't receive any error. I am getting an empty admin page when accessing /admin/dashboard. I have this defined in my config.yml file: services: tock.tockflatpages.admin.grouppageengine: class: Tock\TockFlatPagesBundle\Admin\GroupPageEngineAdmin tags: - { name: tock.admin, manager_type: orm, group: tock_flatpages, label: flatpages } arguments: [Tock\TockFlatPagesBundle\Entity\GroupPageEngine, TockTockFlatPagesBundle:GroupPageEngineAdmin] Also I am using gedmo doctrineExtensions for my entity, could that be the cause ? On Mon, Apr 11, 2011 at 1:07 AM, Christophe COEVOET s...@notk.org wrote: Le 10/04/2011 23:49, Malc a écrit : Basically it's working, but I always get some of the following error's: Catchable fatal error: Object of class could not be converted to string in src\web\vendor\symfony\src\Symfony\Component\Form \EntityChoiceField.php on line 243. Can anybody tell me , how to fix that ? Did I forget something to configure ? Should I convert the objects to strings ? thx, Malc You have to choice: - say to your EntityChoiceField to use a given property of the entity - implement __toString to make your class castable as string Read the doc about the EntityChoiceField: http://symfony.com/doc/2.0/book/doctrine/orm/form.html -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at
[symfony-users] Re: AdminBundle - not able to make it work in PR10
Basically it's working, but I always get some of the following error's: Catchable fatal error: Object of class could not be converted to string in src\web\vendor\symfony\src\Symfony\Component\Form \EntityChoiceField.php on line 243. Can anybody tell me , how to fix that ? Did I forget something to configure ? Should I convert the objects to strings ? thx, Malc On Apr 10, 9:01 pm, seven seven sapt...@gmail.com wrote: Hi everyone, Is AdminBundle working in PR10 ? I am not able to make it work at all ... I followed the instructions from the Resources/doc . -- br Cezar -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: AdminBundle - not able to make it work in PR10
Le 10/04/2011 23:49, Malc a écrit : Basically it's working, but I always get some of the following error's: Catchable fatal error: Object of class could not be converted to string in src\web\vendor\symfony\src\Symfony\Component\Form \EntityChoiceField.php on line 243. Can anybody tell me , how to fix that ? Did I forget something to configure ? Should I convert the objects to strings ? thx, Malc You have to choice: - say to your EntityChoiceField to use a given property of the entity - implement __toString to make your class castable as string Read the doc about the EntityChoiceField: http://symfony.com/doc/2.0/book/doctrine/orm/form.html -- Christophe | Stof -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en