[symfony-users] Re: Symfony 2 tutorial on forms and Doctrine

2011-01-08 Thread Tom Boutell
Damon and Tim, you are right about the : syntax, it does work. I was probably confused by too many other things that didn't work in that code. The updated example for the orm overview: http://docs.symfony-reloaded.org/master/guides/doctrine/orm/overview.html Uses find() instead and the syntax

[symfony-users] Re: Symfony 2 tutorial on forms and Doctrine

2011-01-07 Thread Tom Boutell
http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html seems to be untested or perhaps based on something that worked long ago? $user = $em-createQuery('SELECT u FROM HelloBundle:User WHERE id = ?', $id); $user-setBody('new body'); This will not work, there is no execution

Re: [symfony-users] Re: Symfony 2 tutorial on forms and Doctrine

2011-01-07 Thread Tim Nagel
Doctrine2 supports namespaces for elements, HelloBundle:User is valid. (: is the namespace separator) t On Sat, Jan 8, 2011 at 09:26, Tom Boutell t...@punkave.com wrote: http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html seems to be untested or perhaps based on something that

[symfony-users] Re: Symfony 2 tutorial on forms and Doctrine

2011-01-07 Thread Damon Jones
Tom, Like Tim said, you can use SillyCMSBundle:Page as a shortcut for Application\SillyCMSBundle\Entity\Page. Also, those docs are a bit outdated now, so unless you're working with PR4, you should check the master docs. In the case of the doctrine ORM page: