[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread dziobacz
OK - I know :))) If we have files: 001_file1.class.php and 002_file2.class.php symfony doctrine:migrate 002 - migrate from 001 version (001_file1.class.php) to 002 version (002_file2.class.php) symfony doctrine:migrate 000 - migrate from 002 version -> 001 version -> 000 version (database at the b

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread dziobacz
You have written: 'Each class essentially represents a version of your database and the up() and down() methods allow you to walk backwards and forwards between versions of your database.' - so I can return in symfony to previous version database ? May I know how ? :) On 12 Maj, 22:55, Jonathan

[symfony-users] Re: Missing Javascript Libraries after PEAR installation

2009-05-12 Thread Ian
This is amazing... I've been looking for a while and you're right, using this command works like magic. Unbelievable why that wouldn't work out of the box. On Mar 21, 8:56 pm, Campezzi wrote: > OK, after looking everywhere, I managed to find a solution. > > Turns out things changes in 1.2 - the

[symfony-users] Fatal error: Call to a member function end() on a non-object in ... Hydrator/RecordDriver.php

2009-05-12 Thread joshuacoady
I'm getting the following error and cant figure out why. Fatal error: Call to a member function end() on a non-object in .../ Doctrine/Hydrator/RecordDriver.php on line 51 The relevant code in that file is: public function getLastKey($coll) { $coll->end(); return $coll-

[symfony-users] Re: Problem with symfony 1.2 backend translations

2009-05-12 Thread Zap
Problem solved. Seems that default_culture doesn't work, I tryed at last put [code] setCulture('cs') ?> [/code] into layout.php template to force using desired culture and big suprise for me - it works. I don't know how to solve this better (I doubt this is the best place for this 'hack') but m

[symfony-users] Problems with Propel while trying to insert data into PostgreSQL database

2009-05-12 Thread Reynier Perez Mira
Hi every: I'm trying to insert some data into a PostgreSQL DB and I get this error: 500 | Internal Server Error | PropelException Unable to get sequence id. [wrapped: SQLSTATE[42P01]: Undefined table: 7 ERROR: no existe la relación «tb_edificio_id_eficio_seq» LINE 1: SELECT nextval('tb_edifici

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread Jonathan Wage
Not at the same level of Doctrine. - Jon On Tue, May 12, 2009 at 3:47 PM, Craig wrote: > > Hi, > > Is there something similar for migrating database schemas in Propel? > > Cheers > Craig > > On May 13, 5:17 am, dziobacz wrote: > > WoW !! Thx so much !! > > > > I have one more question - If I h

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread Craig
Hi, Is there something similar for migrating database schemas in Propel? Cheers Craig On May 13, 5:17 am, dziobacz wrote: > WoW !! Thx so much !! > > I have one more question - If I have for example 100. files (I don't > have but I am interested) migration class - can I choose file to > migrat

[symfony-users] Re: symfony 1.2 admin generator - how to integrate calendar-setup.js?

2009-05-12 Thread Joan Teixidó
or use plugin sfFormExtraPlugin that comes with a jQuery calendar 2009/5/12 Yanko Simeonoff > > Christian Hammers wrote: > > Hello > > > > I'm using the admin generator of symfony 1.2.7 and wondering how to > > replace the ugly three-part date input widget by something nice with > > javascript.

[symfony-users] Re: Customize Admin Generator

2009-05-12 Thread FlyLM [ML]
2009/5/12 Alexandru-Emil Lupu : > Hi! > in that module you have a folder  (if you don't have create) called config, > in which you may create a file called security.yml where you can set > > list: >   is_secure: on >   credentials: [ "foo" ] # never used this, but is in the manual... so go > read

[symfony-users] Re: Routing requirement multiple instance of a parameter

2009-05-12 Thread BenjaM1
The last answer by Franck again: >In this case you can create an additional "fallback" route, besides > the route with the category slug, which points to the same action. > This will work in any case, without spending too much time in the > routing stuff. > > > something_without_slug: > url: /:

[symfony-users] Routing requirement multiple instance of a parameter

2009-05-12 Thread BenjaM1
I apologize, I posted this question in the symfony-developers group and I just realize that his place should be here instead of there ... So I asked the following : > I need some help for routing problem. > I want to write a route as > http://my.website.com/en/racket/junior/competition/myracket

[symfony-users] Re: Search engine

2009-05-12 Thread David Ashwood
Search engine integration is like beer - everybody has one they think tastes better :) Personally I prefer to keep it simple - so I use the Doctrine Behaviour and use actAs. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Math

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread dziobacz
WoW !! Thx so much !! I have one more question - If I have for example 100. files (I don't have but I am interested) migration class - can I choose file to migration, for example: 090_something.class.php ? So the solution for other people is: In \lib\migration\doctrine create new file - the nam

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread Jonathan Wage
bootstrap.php is something you would have seen earlier in the documentation. The examples in the Doctrine documentation are for use outside of symfony. You can simply place your migration class in lib/migrations/doctrine and then run the command ./symfony doctrine:migrate - Jon On Tue, May 12, 20

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread dziobacz
my migrate.php file: require_once('bootstrap.php'); $migration = new Doctrine_Migration('001_something.class'); $migration->migrate(); my 001_something.class.php file: class Something extends Doctrine_Migration { public function up() { $this->addColumn('my_new_colu

[symfony-users] Re: Customize Admin Generator

2009-05-12 Thread Alexandru-Emil Lupu
Hi! in that module you have a folder (if you don't have create) called config, in which you may create a file called security.yml where you can set list: is_secure: on credentials: [ "foo" ] # never used this, but is in the manual... so go read that ;) edit: is_secure: on For the second (

[symfony-users] Re: Customize Admin Generator

2009-05-12 Thread FlyLM [ML]
2009/5/12 FlyLM [ML] : > Hi, > > I've just try the "admin generator" and I don't find the way to do > what I really want. > > - First, I would like to use a custom "method" to list my objects. I > know I can use "table_method" directly in the configuration file, but > I need to pass data to this f

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread Jonathan Wage
Hmm. Somewhere a long the line this changed to an option and not an argument and the documentation was not updated it looks like. I would recommend reading through this too so you understand what migrations are. You will need to write migration classes for the changes you wish to make to your data

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread dziobacz
ok, so I think it is that: http://www.symfony-project.org/doctrine/1_2/en/07-Migrations So I am in section: 'Generating Migrations' -> 'From Database': symfony doctrine:generate-migrations-db frontend And I have an error 'too many arguments' In section: 'Generating Migrations' -> 'From Database

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread Jonathan Wage
You should check out the documentation for symfony 1.2 :) not 1.0 http://www.symfony-project.org/doctrine/1_2/en/ - Jon On Tue, May 12, 2009 at 11:04 AM, dziobacz wrote: > > symfony 1.2 and I am noob :) > > > On 12 Maj, 18:02, Jonathan Wage wrote: > > What version of symfony are you using? >

[symfony-users] Search engine

2009-05-12 Thread Mathieu Tricoire
Hello I working on a Symfony/Doctrine project. Which is the best search engine (Advantages, Inconveniences) to search fulltext : sphinx, Lucene ??? ... with MyIsam, InnoDb ? Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread dziobacz
symfony 1.2 and I am noob :) On 12 Maj, 18:02, Jonathan Wage wrote: > What version of symfony are you using? > > - Jon > > > > On Tue, May 12, 2009 at 11:01 AM, dziobacz wrote: > > > So I did: > > > 1. php symfony doctrine:generate-migration frontend profile > > I had an error: 'too many argum

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread Jonathan Wage
What version of symfony are you using? - Jon On Tue, May 12, 2009 at 11:01 AM, dziobacz wrote: > > So I did: > > 1. php symfony doctrine:generate-migration frontend profile > I had an error: 'too many arguments given' so I have made: > php symfony doctrine:generate-migration frontend > it was w

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread dziobacz
So I did: 1. php symfony doctrine:generate-migration frontend profile I had an error: 'too many arguments given' so I have made: php symfony doctrine:generate-migration frontend it was without errors 2. php symfony doctrine:generate-migration frontend 3. php symfony doctrine-migrate frontend An

[symfony-users] sfExtjs2Plugin

2009-05-12 Thread pierrix
I'd like to user sfExtjs2plugin in a symfony 1.0 application. Who could explain me how to create tabs, grid and forms ? Do I use symfony helpers, symfony routing, with sfExtjs2Plugin ? Thank you for your informations? Pierrix. --~--~-~--~~~---~--~~ You received

[symfony-users] Customize Admin Generator

2009-05-12 Thread FlyLM [ML]
Hi, I've just try the "admin generator" and I don't find the way to do what I really want. - First, I would like to use a custom "method" to list my objects. I know I can use "table_method" directly in the configuration file, but I need to pass data to this function (data depends on authenticate

[symfony-users] Re: is it possible to change database without loosing any data ?

2009-05-12 Thread Jonathan Wage
The command just needs a frontend argument to generate the migration. It doesn't modify your frontend application. - Jon On Tue, May 12, 2009 at 10:23 AM, dziobacz wrote: > > I use Doctrine ( I think in Propel will be the same ). I modified my > schema.yml and I would like to change database no

[symfony-users] is it possible to change database without loosing any data ?

2009-05-12 Thread dziobacz
I use Doctrine ( I think in Propel will be the same ). I modified my schema.yml and I would like to change database now without loosing any data. I have found that: http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony-and-doctrine-migrations but there is: ./symfony doctrine:genera

[symfony-users] Re: Why this behaviour

2009-05-12 Thread Reynier Perez Mira
> In your _form.php you have the following line: > > renderLabel(), $form['estado_reservacion'] ?> > > It is trying to access the widget which does not exists anymore and therefore > throwing the error. So I need this logic in the template? Any other way? How the admin-generator does? Cheers I

[symfony-users] Problem with symfony 1.2 backend translations

2009-05-12 Thread Zap
I still have a problem with translate generated backend application in Symfony 1.2.7. I followed these instructions which I found out in several discussions, but still couldn't get any results. 1) /apps/admin/config/settings.yml all: .settings: i18n: on standa

[symfony-users] Re: Why this behaviour

2009-05-12 Thread Don Pinkster
In your _form.php you have the following line: renderLabel(), $form['estado_reservacion'] ?> It is trying to access the widget which does not exists anymore and therefore throwing the error. 2009/5/12 Reynier Perez Mira > > > Can you paste trace of the error? > Sure ... > > # at () > in SF_SYM

[symfony-users] Re: Why this behaviour

2009-05-12 Thread Reynier Perez Mira
> Can you paste trace of the error? Sure ... # at () in SF_SYMFONY_LIB_DIR\form\sfForm.class.php line 956 ... 953. { 954. if (!$widget = $this->widgetSchema[$name]) 955. { 956. throw new InvalidArgumentException(sprintf('Widget "%s" does not e

[symfony-users] Re: Why this behaviour

2009-05-12 Thread Yanko Simeonoff
Reynier Perez Mira wrote: >> Where did you put this code? I mean in which method in the class? >> > Wich code? This one? > > >>> $context = sfContext::getInstance(); >>> $user = $context->getUser(); >>> >>> if (!$user->hasCredential('administrador')) { >>> unset($this['estado_reservacion

[symfony-users] Re: Zend Search scalability

2009-05-12 Thread pghoratiu
Hi! We implemented the Zend Search and dropped it because of the scalability problems. The main problem for us was that Zend Search does not have support for LIMIT in the result set, so it always has to return all entries (and calculate the score for them) thus performance degrades quickly with t

[symfony-users] Re: Why this behaviour

2009-05-12 Thread Reynier Perez Mira
> Where did you put this code? I mean in which method in the class? Wich code? This one? > > $context = sfContext::getInstance(); > > $user = $context->getUser(); > > > > if (!$user->hasCredential('administrador')) { > > unset($this['estado_reservacion']); > > } In the config() from TbReservac

[symfony-users] Re: autoload PHPExcel

2009-05-12 Thread Tomasz Ignatiuk
OK, it works, I added: *set_include_path(get_include_path() . PATH_SEPARATOR . '../lib/');* to* config/ProjectConfiguration.class.php* 2009/5/9 Richtermeister > > Hey Tomasz, > > the problem is not that symfony doesn't find the files.. The problem > is that the Excel library does not rely on

[symfony-users] Re: how to unset a form field when it is a required foreign key and used in an index?

2009-05-12 Thread John Masson
status_id is set up as a foreign key in your database, which is why you are getting the error... You are telling the form that it's not mandatory, but you get the DB exception still because ultimately this is where the constraint is. So thats the why... How to deal with it maybe someone else can

[symfony-users] Reading custom yaml files

2009-05-12 Thread Mark Smith
I have some of my own configuration that I will be reading from custom yaml files. At the moment I am reading them in using sfYaml::load, it works well, but I get the feeling this is bad, because the yaml file will be parsed each and every time I call the page. Is there a mechanism in place to h