[symfony-users] symfony2 batch script

2011-05-10 Thread spider
Hello I was starting a project with symfony 1.4 but in the meantime symfony2 gone beta. My project is still in very early development so I'm evaluating to start over with Symfony2, which I'd have to do anyway at some point. I have some scripts which used the symfony 1.4 infrastructure but not

Re: [symfony-users] symfony2 batch script

2011-05-10 Thread spider
On Tuesday, May 10, 2011 12:26:51 PM UTC+2, Matt Robinson wrote: On 10 May 2011, at 11:23, spider wrote: Is it still possible? Can someone help me or point me to an example or doc? This might help: http://blog.servergrove.com/2010/10/14/creating-console-commands-with-symfony2

[symfony-users] [symfony2] how to update between 2.0 versions

2011-05-28 Thread spider
Hello, with 1.4x I used for my project SVN versioning with externals for Symfony and other library I needed. When a new 1.4x version was out I was able to update it just changing the reference and doing a svn update. Now with 2.0 I moved to git to conform with the framework, but I cannot find

[symfony-users] [symfony2:beta4] where has gone doctrine:generate:repositories ?

2011-06-08 Thread spider
Hello, I just upgraded to BETA4 and tried to generate some repositories (defined in my XML mapping) but, wait, I cannot find anymore the command doctrine:generate:repositories Where has it gone? It's not a big problem, of course, cause the repository class is pretty simple to write by hand

[symfony-users] Re: [symfony2:beta4] where has gone doctrine:generate:repositories ?

2011-06-08 Thread spider
I'm sorry, I didn't find the command, but generate:entities does generate repositories too, if defined in the XML, as I did. Anyway, I'm pretty sure the explicit command was there once :-D Regards. Lorenzo -- If you want to report a vulnerability issue on symfony, please send it to security

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread spider
Sorry if I reply to this old post, but what if I want to map enum type to string? I tried the following edit in app/config/config.yml: doctrine: dbal: types: enum: string but each time I try the doctrine:mapping:convert console command it throw the exception about enum

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-15 Thread spider
Since I need enum type only to convert from database to ORM mapping, I modified MySqlPlatform.php under Doctrine/DBAL/Platforms to add enum type. It is not very nice way to get it work (next time I'll update vendors I'll lose this edit) but it works and I only need to update my Doctrine Model

Re: [symfony-users] Re: Doctrine 2 custom mapping type in Symfony 2

2011-06-16 Thread spider
I tried this syntax as well but I cannot make it work. Maybe I made something wrong? my app/config/config.yml. 35: doctrine: 36: dbal: 43: types: 44: enum: Acme\TestBundle\Types\EnumType my src/Acme/TestBundle/Types/EnumType.php http://pastebin.com/06buTkYE When I