[symfony-users] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread DEEPAK BHATIA
Hi, I want to transition from Symfony 1.1 to Symfony 1.4. What are all the steps required ? Help needed Regards Deepak Bhatia -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegrou

Re: [symfony-users] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread Nathan
First of all read the upgrade guide for 1.1 to 1.2 because there were some serious changes in the form and widget system. After this read the 1.2 to 1.3 upgrade guide. Upgrading from 1.3 to 1.4 is not necessary (both are the same code, except in 1.4 all the depreciated stuff is gone). Nathan On

[symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Parijat Kalia
Hey guys, Just lighting up everyone's day, would like to get as many as possible arguments on this. Me and a friend of mine, had a debate last evening, about open source(PHP) vs closed source technologies(DOT NET).He raised the following points: 1. He feels that open source is not reliable wherea

Re: [symfony-users] default value in form extracted from session

2010-01-08 Thread Stéphane
You could put this in your action, since it's more about "workflow" than domain object. In your action, you'll use $this->redirect or forward methods to redirect/forward user to the ethernet module's newForPc action, passing to it needed parameters (pc id). newForPc will create a new EthForm, set i

Re: [symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-08 Thread Stéphane
There is a netbean plugin to avoid cpu usage when refreshing, it adds a refresh menu item to right-click on folders which does the trick (you might also modify the regexp for files to parse). I use eclipse on vm with ubuntu on a win7. win7 native wamp+eclipse is slower than on ubuntu vmized one -_

Re: [symfony-users] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread Alexandru-Emil Lupu
anyway, if you switch from 1.2 to 1.3 or 1.4 you have available a commandline task that would help you out to figureout what are deprecated functions. Alecs On Fri, Jan 8, 2010 at 10:25 AM, Nathan wrote: > First of all read the upgrade guide for 1.1 to 1.2 because there were some > serious chang

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread Daniel Lohse
Set the validator for this specific field like this: $this->validatorSchema['imagem'] = new sfValidatorFile(array( 'required' => $this->isNew(), 'path' => ... ... )); So the field is only required when it's a new object. Is that what

[symfony-users] Re: Helpers and Widgets??

2010-01-08 Thread wueb
The problem are the timelines. :( -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For

[symfony-users] Re: default value in form extracted from session

2010-01-08 Thread Mikael
Thanks a lot !!! Regards, Mikael -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. Fo

[symfony-users] Production vs Dev benchmark : performance due to web_debug

2010-01-08 Thread DigitalBase
When investigating a problem i had (see : http://groups.google.com/group/symfony-users/browse_thread/thread/becf14dd8789edaf) i decided to run some benchmarks on clean symfony environments comparing 1.2/1.3 & 1.4 I went with the sandboxes of symfony 1.2.10, 1.3.1 and 1.4.1 Clean environment, defau

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Lee Bolding
I think these days, the line between open source and "closed" source is somewhat blurred - and this is a good thing. You now have "premium open source" - with the likes of RHEL, SugarCRM, MySQL and Magento. Microsoft technologies are no longer exclusively closed - I'm currently working with

Re: [symfony-users] Re: Helpers and Widgets??

2010-01-08 Thread Alexandru-Emil Lupu
ASK your PM to give you a daily task for 30 minutes research (time when you study) ... Or read from you home ... 30 minutes is not much, but will keep you on track. If your PM would not understand the need of change / study / learn, then i can recommend you two things: Change your job, or Change yo

[symfony-users] SfForm embed different forms with the same model behind

2010-01-08 Thread Benoit Montuelle
Hi list, I am working with symfony 1.4 to build a simple registration form, I got 2 models for this part : Registration and Person, which works with standalone generated modules. The registration model has 2 one to one relations with person for recording 2 contact information (respectively named

[symfony-users] Re: SfForm embed different forms with the same model behind

2010-01-08 Thread Benoit Montuelle
2010/1/8 Benoit Montuelle > Hi list, > > I am working with symfony 1.4 to build a simple registration form, I got 2 > models for this part : Registration and Person, which works with standalone > generated modules. > > The registration model has 2 one to one relations with person for recording >

[symfony-users] Re: default value in form extracted from session

2010-01-08 Thread Mikael
Hello, I'm may be almost done but I haven't found the way to preset or hide the id_obj field when creating the Eth entry. It could be because I've used the "new" template instead of creating a specific one but shouldn't the value be preset with the correct entry by default ? Here's more precisely

[symfony-users] Re: Offbeat: open source vs closed source technologies

2010-01-08 Thread Massimiliano Arione
I think the major point is: a closed product is depending on a company. if that company decides to stop support, or do any else bad decistion, you're finished. With open source, you can at last do it yourself, but also (and better) pay any other company or single developer to help you. In a closed

[symfony-users] Using useResultCache() in generatet Getters

2010-01-08 Thread ridcully
Hi, i'm using Memcache as a Result Cache, when i'm using a custom Query like Doctrine->getTable('test')->createQuery('q')->useResultCache (true)-> . Everything works fine. But now i want to use the ResultCache in normal Doctrine Getters like: $entity->getRelationObj(); But how can I do t

[symfony-users] Re: default value in form extracted from session

2010-01-08 Thread Mikael
I must have made a mistake during my test : the right pc shows up by default in the dropdown list when creating a new interface. If I wanted to hide this dropdown list, would I have to create a specific template ? Regards, Mikael -- You received this message because you are subscribed to the

Re: [symfony-users] get id from new row

2010-01-08 Thread Gabo
Thansk to all!! The solution is copy the parent::save() before take the id, example: parent::save(); //Insertamos en la tabla de traza de documentos $sfUser = sfContext::getInstance(); $q = new document_trace(); $q->set('id_document',$this->getId()); $q

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, Lee Bolding wrote: > The whole IIS/windows server licensing issue is also beginning to > disappear - if you want a well supported, enterprise grade, stable and > scalable PHP environment, you'll likely want Zend Server - which costs > around the same as a Windows Server l

Re: [symfony-users] Re: default value in form extracted from session

2010-01-08 Thread Stéphane
No, you can use $this->form->widgetSchema['pc_id']->setAttribute('style'=>'display: none'); I don't know if it is exactly that, but this is the idea. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8,

Re: [symfony-users] Re: default value in form extracted from session

2010-01-08 Thread Stéphane
Oops, there are hidden fields too, look this way. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8, 2010 at 2:45 PM, Stéphane wrote: > No, you can use > $this->form->widgetSchema['pc_id']->setAttri

Re: [symfony-users] Re: default value in form extracted from session

2010-01-08 Thread Nathan
$form->setWidget('pc_id', new sfWidgetFormInputHidden()); On Fri, Jan 8, 2010 at 2:45 PM, Stéphane wrote: > Oops, there are hidden fields too, look this way. > > > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnement

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, Parijat Kalia wrote: > 1. He feels that open source is not reliable whereas closed source is. The > logic being that, once the application is developed and sold, if it runs > into some kind of a bug or an error, there is support team for closed source > technologies who are goi

Re: [symfony-users] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, DEEPAK BHATIA wrote: > I want to transition from Symfony 1.1 to Symfony 1.4. > > What are all the steps required ? Well, the first step (as always) is to do some reading - there's upgrade guides for symfony: http://www.symfony-project.org/installation/1_2/upgrade http://www

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Lee Bolding
On 8 Jan 2010, at 13:43, Eno wrote: > On Fri, 8 Jan 2010, Lee Bolding wrote: > >> The whole IIS/windows server licensing issue is also beginning to >> disappear - if you want a well supported, enterprise grade, stable and >> scalable PHP environment, you'll likely want Zend Server - which co

[symfony-users] fixtures segmentation fault

2010-01-08 Thread lorenx
hi all, have the couple schema/data that worked with symfony 1.2 but now, with v1.4, i recieve: >> doctrine Loading data fixtures from >> "/lan/http/symfony/projects/cms/data/fixtures" Segmentation fault it seems a fixture problem cause php symfony doctrine:build --db works as expected. this i

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, Lee Bolding wrote: > Yes, but a salaried employee is more expensive than raising a ticket on > a case-by-case basis with the likes of Zend (or buying a support > contract to begin with) OTOH, that salaried employee will often be doing more than just supporting a single produc

[symfony-users] Fixtures with Doctrine Inheritance

2010-01-08 Thread PieR.
Hi, there is my problem : (http://pastie.textmate.org/private/egnbbqju5q5rsudslsipag) Some resources (here "field") are created by Members and affected to Entities (here Member toto, but it could be a Group etc...). -- schema.yml -- Resource: actAs: Timestampable: ~ columns: member_id

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Sid Bachtiar
>>> If your server goes >>> bump in the night, who you gonna call? >> We have our own support team to call :-) > Yes, but a salaried employee is more expensive than raising a ticket on a > case-by-case basis with the likes of Zend (or buying a support contract to > begin with) Seriously, you'd

[symfony-users] i am having problems with custom events

2010-01-08 Thread Alexandru-Emil Lupu
Hi! i am trying to make some enhancements to my forms and my validators system. I would like to register a config handler that would be called validators.yml (done), wich i want to be able to load the validator settings from an yml file. The bad think is that i cannot find a proper event to attach

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Lee Bolding
On 8 Jan 2010, at 14:40, Sid Bachtiar wrote: If your server goes bump in the night, who you gonna call? > >>> We have our own support team to call :-) > >> Yes, but a salaried employee is more expensive than raising a ticket on a >> case-by-case basis with the likes of Zend (or buyin

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Sid Bachtiar
And are you talking about your real experience or you're just hypothesizing? On Sat, Jan 9, 2010 at 3:51 AM, Lee Bolding wrote: > > On 8 Jan 2010, at 14:40, Sid Bachtiar wrote: > > If your server goes > bump in the night, who you gonna call? >> We have our own support team to call :-

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Georg Gell
Hi, Am 08.01.2010 09:46, schrieb Parijat Kalia: > Hey guys, > > Just lighting up everyone's day, would like to get as many as possible > arguments on this. Me and a friend of mine, had a debate last evening, > about open source(PHP) vs closed source technologies(DOT NET).He raised > the following

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Georg Gell
Am 08.01.2010 15:20, schrieb Lee Bolding: > > On 8 Jan 2010, at 13:43, Eno wrote: > >> On Fri, 8 Jan 2010, Lee Bolding wrote: >> >>> The whole IIS/windows server licensing issue is also beginning to >>> disappear - if you want a well supported, enterprise grade, stable and >>> scalable PHP

[symfony-users] Anyone used symfony with Flash Builder 4 Data Service?

2010-01-08 Thread xhe
Flash Builder 4 has a very exciting feature, data service, which can connect to backend PHP class directly and call the method, render the data consequently. Now the problem comes to me, Symfony is hiding all the class at backend etc. So can anyone if you ever used data service in Flash Builder 4

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, Lee Bolding wrote: > Spending 10's of thousands of dollars on a salaried employee to do that, > when Zend will already do it is crazy. Not necessarily. In some cases, support contracts can cost more than an employee's salary. Depends on your infrastructure and requirements,

[symfony-users] upload office 2007 document (.xlsx) by windows users.

2010-01-08 Thread sikk
Maybe someone already fix this before : When a windows user try to upload an .xlsx file it seem that the mime_type goes like this : firefox : application/octet-stream explorer : application/x-zip-compressed Not easy to save those file, then let the user download them with the good header. So

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread g0d br
That works Daniel. Thank You On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse wrote: > Set the validator for this specific field like this: > > $this->validatorSchema['imagem'] = new sfValidatorFile(array( > 'required' => $this->isNew(), > 'path' => ... > ... > )); > > So the field is only required

Re: [symfony-users] Transition to Symfony 1.4 from Symfony 1.1

2010-01-08 Thread DEEPAK BHATIA
Thanks to all, ;-) On Fri, Jan 8, 2010 at 7:47 PM, Eno wrote: > On Fri, 8 Jan 2010, DEEPAK BHATIA wrote: > > > I want to transition from Symfony 1.1 to Symfony 1.4. > > > > What are all the steps required ? > > Well, the first step (as always) is to do some reading - there's upgrade > guides for

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Lee Bolding
On 8 Jan 2010, at 15:09, Sid Bachtiar wrote: > And are you talking about your real experience or you're just hypothesizing? Real world, it's the structure we're setting up at the startup I'm currently working at. IMHO we've spent far less, and have far superior support and quality of product t

[symfony-users] Batch File

2010-01-08 Thread Augusto Flavio
Hi everybody, i'm looking for the best way to create a automatic script that runs every day in the same hour. The script needs download several PDF's files from a specific website and save it in a specific folder. Have some implementation in symfony that helps do it or need i create a simple ph

[symfony-users] Error lectura de fechas en base de datos LATIN1 con formato d/m/Y

2010-01-08 Thread C
ERROR: Internally stored date/time/timestamp value could not be converted to DateTime: '20/01/2010' [wrapped: DateTime::__construct() [datetime.--construct]: Failed to parse time string (20/01/2010) at position 0 (2): Unexpected character] stack trace * at () in SF_ROOT_DIR/lib/model/om

[symfony-users] sfRouteDoctrine - check on "virtual" attributes

2010-01-08 Thread cristian
Hi, I am quite a newbe of symfony, and I have begun developing my project reading the step-by-step jobeet tutorial. The project environment is the following: Symfony 1.4.1 with Doctine. I have a problem with Routing, with this particular set of code: #routing.yml show-appartamento: url: /:tipo

Re: [symfony-users] Batch File

2010-01-08 Thread Gábor Fási
If all you need is download and save, create a simple bash script with a number of wget calls, and schedule it via cron - absolutely no need for php. On Fri, Jan 8, 2010 at 18:31, Augusto Flavio wrote: > Hi everybody, > > > > i'm looking for the best way to create a automatic script that runs > e

Re: [symfony-users] sfWidgetFormInputFileEditable admin required file

2010-01-08 Thread Daniel Lohse
You're welcome and I'm glad, that is does! :) Cheers, Daniel On Jan 8, 2010, at 5:42 PM, g0d br wrote: > That works Daniel. > > Thank You > > On Fri, Jan 8, 2010 at 7:46 AM, Daniel Lohse > wrote: > Set the validator for this specific field like this: > > $this->validatorSchema['imagem

[symfony-users] Extensively customizing admin generated backends?

2010-01-08 Thread Darren884
Hi guys, I am developing with Symfony 1.4 and have generated my backend, however there are some problems I have ran into. Is there anyway to customize the way fields are displayed in the list view? E.g. say if I have an image and I wnat to customize how it looks in a list view. Also how do I init

Re: [symfony-users] Extensively customizing admin generated backends?

2010-01-08 Thread Stéphane
Google for "symfony generator chapter 14" there are about all things put here, not in detail. For details and help I recommend IRC network. -In the list view you'll have to create template _myimage.php, modify your generator.yml list: fields: [ _myimage ] then in the _myimage.php you'll have acces

[symfony-users] Re: Extensively customizing admin generated backends?

2010-01-08 Thread Darren884
Thank you so much Stéphane for the quick reply I will be sure to look for what you suggested. Thanks, Darren On Jan 8, 11:17 am, Stéphane wrote: > Google for "symfony generator chapter 14" there are about all things put > here, not in detail. > For details and help I recommend IRC network. > > -

Re: [symfony-users] Re: Helpers and Widgets??

2010-01-08 Thread Eno
On Fri, 8 Jan 2010, wueb wrote: > The problem are the timelines. :( You probably spend the same amount of time posting to this list and checking for replies - those 30 mins could easily be spent reading. -- -- You received this message because you are subscribed to the Google Groups "sy

Re: [symfony-users] Batch File

2010-01-08 Thread Augusto Flavio
I made a Task using the sfBaseTask class. Worked fine. Is more better than wget because i will use it in several projects and the management of it is more easy instead bash script with many wget. All in a symfony project. Maintainability is good for every project. Bye. Augusto Morais -- You

Re: [symfony-users] Offbeat: open source vs closed source technologies

2010-01-08 Thread Parijat Kalia
Wow, that's a lot of interesting insight. I like the DIY for a bug in open source vs a dead end to a bug in closed source as a really solid example. I think that helps open source win vs closed source. Although I do believe it is an extreme case. Does anyone have more insights to offer? On Fri, Ja

[symfony-users] Symfony data load

2010-01-08 Thread Gabo
Help!! i used c:\project\symfony doctrine:data-load the error: The "default" context does not exist.??? Symfony 1.2.9 , Doctrine Plugin, sfDoctrineGuard. -- 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] Re: From link_to to m_link_to

2010-01-08 Thread rekarnar
try and check the head of your document and see if it is attempting to load the css with an incorrect path On Jan 7, 10:31 am, tirengarfio wrote: > Hi Gareth, im using sfModalPlugin. > > Yes its true, the div id names have changed. And also it's not loading > a file called cropper.css that i'm in

[symfony-users] Inherited Forms and setupInheritance()

2010-01-08 Thread webPragmatist
Hello, I am trying to determine how to use symfony forms properly withinheritance. I am using column aggregation. Currently ALL of the columns show up no matter which Form object I am using I'd like only for widgets corresponding to the BaseObject + InherittedObject... This is how i think it sho