[symfony-users] Need help with Doctrine migration
Hey everyone, I am maintaining a Symfony 1.4 application. I need to add a column to an existing table in production database. I am trying to use Doctrine migration ability to do so. My first command was: php symfony doctrine:generate-migrations-db. I get the error: Could not generate migration classes from database I then tried to generate my own migration class: php symfony doctrine:generate-migration AddMymoduleMyfield Class was generated as well as 91 others that re-create my complete database (isn't this supposed to be the result of the first command ?) Problem is, as soon as I launch: php symfony doctrine:migrate Here's the output I get: >> doctrine Migrating from version 1 to 92 I then get error saying that table already exists. So I gather migration is going to try to recreate databases from start, and PostgreSQL returning 'already exists' error. Simply put, is there a way to ask Symfony to migrate from version 91 to 92 (instead of 1 to 92) ?? -- 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: sfWidgetFormChoice
It worked ! Thank you ^^ On Jun 15, 1:18 pm, Gábor Fási wrote: > "choices" => array( > "choice1" => "choice1", > "choice2" => "choice2", > ); > > > > On Tue, Jun 15, 2010 at 10:24, Joe wrote: > > I am working on a module generated by the admin generator. I added the > > sfWidgetFormChoice widget to the lib/form file, like this : > > > class MyModule extends BaseMyModule > > { > > public function configure() > > { > > $this->widgetSchema['field'] = new sfWidgetFormChoice (array( > > 'choices' => array ('Choice1', 'Choice2') > > )); > > } > > } > > > My problem is that the choices are converted to '0' and '1' before > > Insert(). I would like to insert the values of 'choices' (in this case > > Choice1 and Choice2). > > > Help would be appreciated. I hope I am clear enough. > > > -- > > 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
[symfony-users] sfWidgetFormChoice
I am working on a module generated by the admin generator. I added the sfWidgetFormChoice widget to the lib/form file, like this : class MyModule extends BaseMyModule { public function configure() { $this->widgetSchema['field'] = new sfWidgetFormChoice (array( 'choices' => array ('Choice1', 'Choice2') )); } } My problem is that the choices are converted to '0' and '1' before Insert(). I would like to insert the values of 'choices' (in this case Choice1 and Choice2). Help would be appreciated. I hope I am clear enough. -- 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: Migrating to a new server
Thanks again, everyone. Now... How do I get version 1.1? 1.2 requires PHP 5.2.4, which I don't have on this server. On Thu, Aug 20, 2009 at 8:24 AM, Eno wrote: > > On Thu, 20 Aug 2009, rajmd wrote: > > > you need to place the symfony folder in the the lib/verdor directory > > under your project, and change the reference in your config/ > > config.php which is using /usr/share/ > > symfony/l this path to your project relative directory. > > > > then your project will work fine. > > > > http://www.symfony-project.org/book/1_2/16-Application-Management-Tools#chapter_16_sub_freezing_a_project_for_ftp_transfer > > > > -- > > > > > > --~--~-~--~~~---~--~~ 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] symfony cc problem
I have a symfony project with three apps: sales, tracking and admin. I have been working on it for a while, and I thought that something to do before I start releasing it is to clear the cache. I tried: symfony cc PHP Fatal error: Class '\adminConfiguration' not found in C:\PHP\pear \symfony\lib\config\sfProjectConfiguration.class.php on line 290 How did that \ get in front of the word admin? My apps/admin/config/ adminConfiguration.class.php has not been changed since the init-app. I can successfully perform symfony cc --app=admin /Joe --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---