[symfony-users] Need help with Doctrine migration

2010-07-13 Thread Joe
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

2010-06-16 Thread Joe
It worked !

Thank you ^^

On Jun 15, 1:18 pm, Gábor Fási maerl...@gmail.com wrote:
 choices = array(
   choice1 = choice1,
   choice2 = choice2,
 );



 On Tue, Jun 15, 2010 at 10:24, Joe joe.hakim.ra...@gmail.com 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

2010-06-15 Thread Joe
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] symfony cc problem

2008-04-10 Thread Joe Kelsey

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