-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi thomas,

some feedback and hints on the AdminBundle. (i post this to the list, as
people might stumble over the same details as i did...)

i followed http://rabaix.net/AdminBundle/html/index.html

first: THANKS! this is an awesome tool!


tutorial chapter 4:
http://rabaix.net/AdminBundle/html/tutorial/creating_your_first_admin_class/defining_crud_controller.html

there is a note that declaring a controller is optional. this is true,
but you should explain the service configuration with a bit more detail:

<argument/>
<argument>Sonata\NewsBundle\Entity\Post</argument>
<argument>SonataNewsBundle:PostAdmin</argument>
resp.
arguments: [null, Sonata\NewsBundle\Entity\Post, SonataNewsBundle:PostAdmin]

=> the third parameter is the name of the controller. if you did not
define one, leave this empty/null


tutorial chapter 5:
http://rabaix.net/AdminBundle/html/tutorial/creating_your_first_admin_class/defining_admin_class.html

at the end of 5.1, i had to delete my cache to let symfony see the new
routes generated by the admin. (until i did, i got an exception for
missing route admin_acme_demo_entity_list)


the error message that occurs if a field name in the admin class does
not map to an entity field name could hint that you might mistyped your
field name. currently it just tells it has no type for that field, which
is confusing for beginners like me

An exception has been thrown during the rendering of a template ("Please
define a type for field `title` in `Acme\DemoBundle\Admin\EntityAdmin`")
in SonataAdminBundle:CRUD:base_list.html.twig at line 25.


many to many relations:

when i add the related entity, the list of available selections is not
updated, i have to reload the page to see the new entry. is this a bug?
found no issue in the github bugtracker...


when editing the relation, i have another issue - which is actually more
of a doctrine:generate:entities issue:

i used a yml file to create my entities:
    manyToMany:
        subscribed:
            targetEntity: Course

doctrine:generate:entities creates a class with getSubscribed and
addSubscribed (which is weird, you can not remove a subscription this
way. plus the annotation doc on getSubscribed is lying, claiming the
return value to be a doctrine collection but returning a plain array)

i had to set the field to protected or public to make the adminbundle
work. maybe adminbundle should use the addSubscribed method for
manyToMany relations? do you know what the idea with the generate
entities command is here? is this going to be fixed by either you or
doctrine to work out of the box?

cheers,david
- -- 
Liip AG // Agile Web Development // T +41 26 422 25 11
CH-1700 Fribourg // PGP 0xA581808B // www.liip.ch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3o3GQACgkQqBnXnqWBgIvxCACdHOh0mClKKFzIElRN8dXuUmOt
v/wAnRpouRBq+Pj+OmWYxDE5thBuGe1o
=f1Rx
-----END PGP SIGNATURE-----

-- 
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

Reply via email to