Re: [symfony-users] Re: No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-02 Thread Rebecca Bielecki
so does that mean that you don't ever upgrade project with a lot of database i/o? ie that you always need to do a lot of work by upgrading symfony and then creating a new project to port the old project to and then modifying all db i/o? - Original Message - From: Alexandru-Emil Lupu

Re: [symfony-users] Re: Doctrine data-load out of memory (Ticket #7733)

2010-02-02 Thread Daniel Lohse
You can do that by setting your email address in the cc field in Trac when you're logged-in and viewing that ticket. :) Daniel On 03.02.2010, at 01:11, Brandon Turner wrote: > Ah, I didn't realize the ticket had been closed. I wish there was a way > to monitor a ticket so I get emails when som

Re: [symfony-users] Re: No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-02 Thread Alexandru-Emil Lupu
existing project is pretty hard to change ... you would need to get into existing actions and check if they are using criteria ... custom propel classes and some other things :) On Wed, Feb 3, 2010 at 1:18 AM, Rebecca Bielecki wrote: > Have found where to use orm parameter. Will try to genera

Re: [symfony-users] Re: Doctrine data-load out of memory (Ticket #7733)

2010-02-02 Thread Brandon Turner
Ah, I didn't realize the ticket had been closed. I wish there was a way to monitor a ticket so I get emails when something happens to it. On 02/02/2010 06:00 PM, Tony Piper wrote: > > On Jan 31, 5:43 pm, Brandon Turner wrote: > >> Hello all, >> >> I've been using data fixtures more and more i

Re: [symfony-users] Re: Memory Leak using Doctrine in Tasks?

2010-02-02 Thread Brandon Turner
Glad to hear it worked! I posted to symfony-devs earlier today: http://groups.google.com/group/symfony-devs/browse_thread/thread/e840366691f85fc8 We'll see if anything comes of it. Still not sure if it's a "dev" question, but I just don't think setting up a separate env for tasks is intended (eve

[symfony-users] Re: Doctrine data-load out of memory (Ticket #7733)

2010-02-02 Thread Tony Piper
On Jan 31, 5:43 pm, Brandon Turner wrote: > Hello all, > > I've been using data fixtures more and more in my Symfony 1.4.1 project > and have run up against an out-of-memory error when loading data via the > doctrine:data-load task.  My PHP CLI memory_limit is currently set at > 32MB.  I've got

[symfony-users] Re: Memory Leak using Doctrine in Tasks?

2010-02-02 Thread Tony Piper
Brandon, you're a star! Creating a new environment and disabling the profiler solved the problem. Do you think the profiler gets used by a non-existant web debug pane (to log queries that have been executed?). I'm struggling to think why the ApplicationConfiguration would get created with 'debug=

Re: [symfony-users] Re: No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-02 Thread Rebecca Bielecki
Have found where to use orm parameter. Will try to generate new project and then port my existing project to the new project. Thanks for your help. - Original Message - From: "PachinSV" To: "symfony users" Sent: Tuesday, February 02, 2010 9:27 PM Subject: [symfony-users] Re: No Pro

[symfony-users] Re: Redirecting to filtered admin page

2010-02-02 Thread DC
Thank you very much! It worked flawlessly! On Feb 2, 10:03 am, Florian wrote: > Hi DC, > > When I want to do that, i need to disable the csrf check by > configuring thefilterform like this: > > // in the configure() method of your *FormFilter > >     $this->disableLocalCSRFProtection(); > > Then

[symfony-users] Re: How to set trim default option on all widgets in a Form

2010-02-02 Thread rooster (Russ)
Some discussion about this here: http://forum.symfony-project.org/index.php/m/56343/#msg_56343 On Feb 2, 8:11 pm, DoRiaN wrote: > Up please :) > > On 1 fév, 17:44, DoRiaN wrote: > > > > > Hello (i'm french, excuse me for my english), > > > How to set trim default option on all widgets in a Form

[symfony-users] sfWidgetFormDoctrineChoice and ajax callback to manage dependecy fields

2010-02-02 Thread adrianrz
Hello, I have a form definition $this->setWidgets(array( 'razonsocial' => new sfWidgetFormInputText(), 'nombre'=> new sfWidgetFormInputText(), 'direccion' => new sfWidgetFormInputText(), 'provincia_id' => new sfWidgetFormDoctrineChoice(array('model' => 'Prov

Re: [symfony-users] Memory Leak using Doctrine in Tasks?

2010-02-02 Thread Brandon Turner
Tony, I tried enabling an application configuration on my long running Symfony 1.4.1 Doctrine task and got the same behavior you did. As far as I can tell the memory "leaks" appear due to Doctrine_Connection_Profiler being enabled. The Doctrine_Connection_Profiler (if I understand it correctly)

[symfony-users] Re: Symfony Admin Generator Not Generating All Routes Properly

2010-02-02 Thread Darren884
Had to regenerate the app. On Feb 2, 10:51 am, Darren884 wrote: > Apparently this is now only happening for modules that have relations. > > On Feb 2, 10:46 am, Darren884 wrote: > > > Some generated modules are done correctly, but with certain ones the > > routes aren't simply there when generat

[symfony-users] Re: Scheme definition help - symfony 1.4

2010-02-02 Thread AnTiLo0p
I decide to remove any reference to any foreign: "{table}_id", and leave only "id" as the foreign key for each relation (insteado of tableName_id), looks like that way everything run smoth and sql/db are created OK, thanks Tom, this is the scheme: User: columns: email: { type: string(255),

[symfony-users] Re: How to set trim default option on all widgets in a Form

2010-02-02 Thread DoRiaN
Up please :) On 1 fév, 17:44, DoRiaN wrote: > Hello (i'm french, excuse me for my english), > > How to set trim default option on all widgets in a Form ? > > Thanks, > Dorian -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this gro

[symfony-users] Re: Symfony Admin Generator Not Generating All Routes Properly

2010-02-02 Thread Darren884
Apparently this is now only happening for modules that have relations. On Feb 2, 10:46 am, Darren884 wrote: > Some generated modules are done correctly, but with certain ones the > routes aren't simply there when generated. I am getting errors like: > The route "employee_employee_collection" does

[symfony-users] Symfony Admin Generator Not Generating All Routes Properly

2010-02-02 Thread Darren884
Some generated modules are done correctly, but with certain ones the routes aren't simply there when generated. I am getting errors like: The route "employee_employee_collection" does not exist. Has anyone had this issue? This is the weirdest thing, because why are some being generated correctly a

[symfony-users] Re: Help please! json_encode problem in symfony

2010-02-02 Thread ScaNNeR
For JSON exchange I doing special module 'json' named. Addition I create "config" folder for "json" module and create "view.yml" whithout template. My actions sample: public function executeNewChart(sfWebRequest $request) { $retData = array(); /* only ajax request */ if ($reque

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-02 Thread wueb
Hello Tom, $empresas had a array with values and descriptions to put on the select. But right now my major problem is the 2nd. Any idea? -- 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...@googl

[symfony-users] Re: Scheme definition help - symfony 1.4

2010-02-02 Thread AnTiLo0p
Thanks Tom, but I have now more doubts..., None of my other columns with relations have a definided "*_id" column but those id columns are auto-generated when the sql schema is created, I will test adding the book_id column to Book table, but do you have any idea of such behaivor (not automatic ge

Re: [symfony-users] No content

2010-02-02 Thread Javier Garcia
Hi, On 01/21/2010 06:01 PM, Eno wrote: Look at your web server error logs. Do you mean there are hosting providers that have error logs for FPT uploading? Javi -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send e

[symfony-users] Memory Leak using Doctrine in Tasks?

2010-02-02 Thread Tony Piper
Hello. I've spent a good few hours trying to fix a memory leak in a Symfony Task which uses Doctrine to access a table. I'm finding that if I specify an application name (so that the Task runs with an sfApplicationConfiguration instance) there is a memory leak each time I run the simplest of Doctr

[symfony-users] Re: custom format date arguments

2010-02-02 Thread basos g
Here is the source code clarified quick ref for format_date patterns http://trac.symfony-project.org/wiki/formatDateHowTo referencing the internal tokens as well. * Really userfull. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to th

[symfony-users] format_date on wiki

2010-02-02 Thread basos
Here is the source code clarified quick ref for format_date http://trac.symfony-project.org/wiki/formatDateHowTo referencing the internal tokens as well. * Really userfull. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group,

[symfony-users] Format_date documentation

2010-02-02 Thread basos
I had the same question some time ago. Here is the clues about supported formats: http://trac.symfony-project.org/wiki/formatDateHowTo -- 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...@googlegro

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-02 Thread Tom Ptacnik
Try unset($this->validatorSchema['yourfild']); On 2 ún, 10:52, l3ia-etu wrote: > yes, that's good ! > > so, i will set the widget readonly: > >                         > $this->widgetSchema['somme']->setAttribute('readonly','readonly'); > > and just another question, how to remove the validator

[symfony-users] Re: MVC - where to put complex application code in symfony

2010-02-02 Thread Tom Ptacnik
Thank you all for your responses, I will create my own bussiness classes and put them into the appropriate /lib folder. Maybe into the /lib/app or /lib/buss subfolder for better tidiness ;) I have only one "problem" with this... I my previous system the layers can communicate only with closest l

[symfony-users] How to diable admin new and edit form

2010-02-02 Thread Dong YANG
Hello everyone, I get a question and I need your advices. In the admin app, I want to only display list form, so in other words, I need to disable new and edit action. So doing this, I tried to update the backend routing, like below: test: class: sfPropelRouteCollection options: model: Test mod

[symfony-users] Re: MVC - where to put complex application code in symfony

2010-02-02 Thread Tom Ptacnik
Thank you for your reply, the point is that if you have more complex bussines logic - which work with more than one model. Into which class will you put it? And where to put this class... For this i create my own bussines/application classes and I wanted to know where to put them when working with

[symfony-users] Symfony live 2010 in Paris - want my ticket?

2010-02-02 Thread mintao
Hi, I can't take part in the Symfony Live 2010 event in Paris, but I already have bought a ticket. First one who contacts me gets it for 150$ instead of 200$. Good luck! Florian -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-02 Thread Tom Ptacnik
What do you have in the $empresas variable? how your action code? On 1 ún, 18:53, wueb wrote: > Hi. > > I'm having 2 problems and i though someone here could help me. > > 1st PROBLEM: > > I have a widget called "id_empresa" which is a sfWidgetFormChoice with > multiple choices, like this: > > $th

[symfony-users] Re: Scheme definition help - symfony 1.4

2010-02-02 Thread Tom Ptacnik
Look on Client: relations - you have Book relation here with foreign id set to book_id, but you haven't book_id columnt in your Book table... ;) On 1 ún, 06:51, AnTiLo0p wrote: > I'm trying to make the following scheme work, but I just can't do > it... I'm getting mess with all the doctrine "one

[symfony-users] Re: sfForm standalone - Upload file with prefix

2010-02-02 Thread Tom Ptacnik
Try to compare var_dump($_FILES) with and without prefix.. On 1 ún, 14:44, DoRiaN wrote: > Yes i have >> undefined index in $_FILES. It's logical. > > On 1 fév, 14:03, Tom Ptacnik wrote: > > > > > Have you tried something like > > > $oFormFile->bind(array(), array('file' => $_FILES > > ['myPref

[symfony-users] Re: Apostrophe, our CMS framework, is now Symfony 1.4 ready

2010-02-02 Thread Alex Gilbert
Hey Hal, Good feedback. You'll find us in agreement with a lot of it. We've been slowly (too slowly!) improving the online strategy for Apostrophe as the project itself has become more ready for the public. Recently we set up a Trac (http://trac.apostrophenow.org) and moved to a new Google Group

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-02 Thread wueb
!! -- 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 more options, visit this

Re: [symfony-users] Re: No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-02 Thread Rebecca Bielecki
Thank you for that - one question, what about existing projects - how do I change it over to Doctrine? Where do I specify the orm parameter? Sorry if that is too general a question. - Original Message - From: "PachinSV" To: "symfony users" Sent: Tuesday, February 02, 2010 9:27 PM

[symfony-users] Re: No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-02 Thread PachinSV
Creo que el problema es que symfony 1.3 y 1.4 usa Doctrine como default, Ej.: Cuando creas un nuevo proyecto tienes que usar el parametro --orm=Propel (si quieres ocupar Propel, de otra manera el proyecto usará Doctrine), espero sea de tu ayuda, saludos! ---

[symfony-users] Re: CheckBox at Server Side

2010-02-02 Thread mandyllanes
Thank Andro, but not work me. The solutions that i use's following: In the class sfAction $value = $sf_request->getRequestParameter('namefield'); in the condition if ($value!='')that's have value. Thanks. On 29 ene, 13:06, Andro wrote: > $values = $request->getParameter($this->form->

[symfony-users] Symfony & Diem Developer needed for small contract

2010-02-02 Thread RobRoyAus
Hi everyone, (cross-posted from Diem Users group) This is an urgent message seeking an experienced Symfony and Diem developer to assist with a new web application. The first task is general setup and configuration of the site, mainly setting up and extending the dmUser plugin for a bunch of cust

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-02 Thread Alexandru-Emil Lupu
It should not be... if you are a beginner, then try Doctrine. It will be the default in sf2 sent via htc magic On Feb 2, 2010 9:33 AM, "Rebecca Bielecki" wrote: I am thinking that my best option at this stage is to start from scratch - ie install wamp and symfony from scratch and go straight t

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-02 Thread l3ia-etu
yes, that's good ! so, i will set the widget readonly: $this->widgetSchema['somme']->setAttribute('readonly','readonly'); and just another question, how to remove the validator ? (to protect against hackers) (cf http://forum.symfony-project.org/index.php/m/85114/) On

Re: [symfony-users] Re: array of array

2010-02-02 Thread ozgur ince
did you set validator for this field? On Mon, Feb 1, 2010 at 6:32 PM, DoRiaN wrote: > I'm sorry, bind it's ok with $oForm->getEmbeddedForm(..)->bind(...) > > Is there an alternative? > > > On 1 fév, 17:23, DoRiaN wrote: >> Finally, I can't bind with $this->embedForm(), it's not OK. >> >> On 1 fé

Re: [symfony-users] MVC - where to put complex application code in symfony

2010-02-02 Thread Gareth McCumskey
Feel free to create your own classes as and when you need them. If they need to be globally accessible classes from any application create them in /lib. If they are only needed for one application (like the frontend) store them in /apps/app_name/lib. Whenever you use them in your code anywhere else

Re: [symfony-users] Nested set rendering

2010-02-02 Thread Romain Pouclet
Thanks for your help, it works :) For those who are interested, here it is : http://gist.github.com/292543 Cheers ! Le 1 févr. 2010 à 16:57, Bernhard Schussek a écrit : > You could, for instance, write a recursive render helper: > > function render_nested_set(Doctrine_Collection $collection) >

[symfony-users] NestedSet doctrine behavior : hasChildren() and getChildren() disconnectedness

2010-02-02 Thread Romain Pouclet
Hi all, I'm using nested set doctrine behavior, and as I my previous issue I'm using a helper to render my tree, so here is how I use it : getLabel() ?> getNode()->hasChildren()) : ?> getNode()->getChildren()), sfOutputEscaper::unescape($path) ) ?> But today, I had a ver

Re: [symfony-users] Re: Definitive guide for 1.3 and 1.4

2010-02-02 Thread Thomas Rabaix
The main advantage of the definitive guide is that all information about symfony are available in one place. The right side tag cloud also help a lot to go to the correct part of the documentation. I still look at it to get references about cache, slot and other stuffs. Some information are only a

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-02 Thread wueb
Anyone please? :( -- 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 more options,

Re: [symfony-users] MVC - where to put complex application code in symfony

2010-02-02 Thread Dheeraj Kumar Aggarwal
hi According to your terminology, i think you have used Spring framework with hibernate in java or another framework In symfony, you first define your model layer schema in schema.yml then you can use propel or doctrine as a ORM to generate your model layer i have used Propel so in propel, it

Re: [symfony-users] Re: Definitive guide for 1.3 and 1.4

2010-02-02 Thread Fabien Potencier
The book is now available in the SVN repository, ready for anyone to contribute. More information are available on the symfony docs mailing-list: http://groups.google.com/group/symfony-docs/browse_thread/thread/66c6eb6c91ee6726 Fabien -- Fabien Potencier Sensio CEO - symfony lead developer se

[symfony-users] Re: Redirecting to filtered admin page

2010-02-02 Thread Florian
Hi DC, When I want to do that, i need to disable the csrf check by configuring the filter form like this: // in the configure() method of your *FormFilter $this->disableLocalCSRFProtection(); Then, I use link_to: $nb_commandes), $nb_commandes), 'commande_collection', array('action' => 'fi