[symfony-users] Re: Form data is not saved to database in generated module

2009-02-13 Thread shams
My problem is solved because I can change my table and field names in this case . But is not this a symfony bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email

[symfony-users] Re: How to display the data from a Join query?

2009-02-13 Thread SeeVik
OhI forgot to mention...I am using Syfony 1.2.4 with Doctrine plugin. On Feb 14, 10:31 am, SeeVik wrote: > Hello all, > > I am trying to display data which results on performing an inner-join > between two tables. > > Controller: action.class.php > ---

[symfony-users] How to display the data from a Join query?

2009-02-13 Thread SeeVik
Hello all, I am trying to display data which results on performing an inner-join between two tables. Controller: action.class.php --- public function executeShow() { $list = Doctrine::getTable( 'Table1' )->getJoinedTable(); } Model Layer

[symfony-users] Re: How to Use the Great sfDoctrineUserPlugin?

2009-02-13 Thread Xin Jia
I've just followed it but failed. Well, what URL should I enter, need any other setting or codes ? Thanks. - xj On Sat, Feb 14, 2009 at 5:45 AM, Рустам wrote: > > See readme, it's simple > > On Fri, Feb 13, 2009 at 5:54 PM, Xin Jia wrote: > > Hi, > > > > Could anybody show me how to use it ?

[symfony-users] Re: Form data is not saved to database in generated module

2009-02-13 Thread Tom Haskins-Vaughan
So is your problem solved? shams wrote: > I use: > - MySQL 5.0.51a-community-nt > - PHP 5.2.8 > - symfony sandbox 1.2.4 > > Table defenition: > > CREATE TABLE IF NOT EXISTS `Project` ( > `ID` INT NOT NULL AUTO_INCREMENT , > `Name` VARCHAR(255) NOT NULL , > `Price` DECIMAL(18,2) NOT NULL

[symfony-users] Re: How to Use the Great sfDoctrineUserPlugin?

2009-02-13 Thread Рустам
See readme, it's simple On Fri, Feb 13, 2009 at 5:54 PM, Xin Jia wrote: > Hi, > > Could anybody show me how to use it ? I tried for a long time but failed and > don't have any idea about it ? Thanks. > > - xj > > > > --~--~-~--~~~---~--~~ You received this messag

[symfony-users] Re: Form data is not saved to database in generated module

2009-02-13 Thread shams
I use: - MySQL 5.0.51a-community-nt - PHP 5.2.8 - symfony sandbox 1.2.4 Table defenition: CREATE TABLE IF NOT EXISTS `Project` ( `ID` INT NOT NULL AUTO_INCREMENT , `Name` VARCHAR(255) NOT NULL , `Price` DECIMAL(18,2) NOT NULL , `Image` VARCHAR(255) NOT NULL , PRIMARY KEY (`ID`) ) ENG

[symfony-users] Re: Forcing arrays in YAML

2009-02-13 Thread Jacob Coby
Use [] or the - yaml list syntax: all: my_config: [1, 2, 3, 4] all: my_config: - 1 - 2 - 3 - 4 they're equivalent On Feb 13, 2009, at 1:41 PM, Rytis Daugirdas wrote: > Hello, > > Is there a way to define arrays at the first node level of YAML? For > example: > > all:

[symfony-users] Re: Routing rules where the parameter to be set is not exactly what should appear in the URL

2009-02-13 Thread Tom Haskins-Vaughan
I may be completely off track here, but does the requirements field not use regular expressions? If it does, is there not something you can do like this: requirements: { type: (image|video)s } Tom Boutell wrote: > I spent some time puzzling over these two routing rules today: > > > image

[symfony-users] Forcing arrays in YAML

2009-02-13 Thread Rytis Daugirdas
Hello, Is there a way to define arrays at the first node level of YAML? For example: all: my_config: ... sfConfig::get('prefix_my_config'); // would return an array I really hate to add additional levels all the time that don't serve any purpose except to force array parsing. Regards, Ry

[symfony-users] Routing rules where the parameter to be set is not exactly what should appear in the URL

2009-02-13 Thread Tom Boutell
I spent some time puzzling over these two routing rules today: images: url: /test/images param: { module: test, action: index, type: image } default_index: url: /:module param: { action: index } I had thought that calling link_to on this URL: test/index Would generate this: /tes

[symfony-users] Re: sfBrowser memory bug

2009-02-13 Thread Gareth McCumskey
I think what Thomas is getting at is that the functional tests run using the cli while browser runs using the cgi and you need to make sure you alter both ini for each of the two PHP types. Gareth McCumskey On Fri, Feb 13, 2009 at 8:16 PM, Thomas Rabaix wrote: > On some systeme there are two php

[symfony-users] Re: sfBrowser memory bug

2009-02-13 Thread myke
Yes. Just saw a post about sfForm trying to serialize a PDO object - that seems to be the issue not sfBrowser. On Feb 13, 10:16 am, Thomas Rabaix wrote: > On some systeme there are two php.ini file > >    - cli >    - apache / cgi > > Have you change the limit to the correct php.ini file ? > >

[symfony-users] Re: sfBrowser memory bug

2009-02-13 Thread Thomas Rabaix
On some systeme there are two php.ini file - cli - apache / cgi Have you change the limit to the correct php.ini file ? On Fri, Feb 13, 2009 at 7:01 PM, myke wrote: > > I am writting a functional test that is testing login's through a > sfForm object and I'm getting out of memory errors

[symfony-users] Re: Why Doctrine Admin Generator use sfWidgetFormDoctrineSelect on foreign key fields?

2009-02-13 Thread jukea
Yes, that's what I was talking about. This fix applies to N to N relations. 1 .. N relations still have a select drop down menu, and I can't see how this is not appropriate .. ? Would you prefer radio buttons ? then you could use the 'expanded'=>true option Julien On Feb 13, 12:55 pm, Daniele

[symfony-users] Re: Sf 1.2: upload a file inside an embedded form

2009-02-13 Thread Thomas Rabaix
There is a bug in sfForm in this particular case, see http://trac.symfony-project.org/ticket/5075 On Fri, Feb 13, 2009 at 6:54 PM, Tomasz Ignatiuk wrote: > > Does anyone really tried to do this? Simple upload from embeded form > works well, but if I try to do this: > > $file = $this->form->

[symfony-users] sfBrowser memory bug

2009-02-13 Thread myke
I am writting a functional test that is testing login's through a sfForm object and I'm getting out of memory errors (even if I increase the limit to several gigs). The issue doesn't happen when your in a dev or prod environment so I can't replicate it other then when using functional tests. I've

[symfony-users] Re: Why Doctrine Admin Generator use sfWidgetFormDoctrineSelect on foreign key fields?

2009-02-13 Thread Daniele
I am not very expert on Trac or SVN, but I do not find anything about this. I found this that is only similar but not is the same: http://trac.symfony-project.org/ticket/5784 On Feb 12, 11:17 pm, jukea wrote: > Hi, > > I think this has been corrected. Look for it in trac, or try 1.2.5dev > (trun

[symfony-users] Sf 1.2: upload a file inside an embedded form

2009-02-13 Thread Tomasz Ignatiuk
Does anyone really tried to do this? Simple upload from embeded form works well, but if I try to do this: $file = $this->form->getValue('file'); $filename = sha1($file->getOriginalName()).$file->getExtension ($file->getOriginalExtension()); $file->save(sfConfig::get('sf_upload_d

[symfony-users] Re: Why Doctrine Admin Generator use sfWidgetFormDoctrineSelect on foreign key fields?

2009-02-13 Thread Jonathan Wage
Ya I fixed this recently in svn. - Jon On Thu, Feb 12, 2009 at 4:17 PM, jukea wrote: > > Hi, > > I think this has been corrected. Look for it in trac, or try 1.2.5dev > (trunk) > > Julien > > On Feb 12, 4:35 pm, Daniele wrote: > > Hi, > > someone can help me to understand why my Doctrine admin

[symfony-users] Re: Form data is not saved to database in generated module

2009-02-13 Thread Tom Haskins-Vaughan
What database are you using? shams wrote: > Good day. > I am a rather new user of symfony framework. > The short description of my problem is: form data is not saved to > database in generated module. > > I generate schema from database ant then build model: > # symfony propel:build-schema > # s

[symfony-users] Form data is not saved to database in generated module

2009-02-13 Thread shams
Good day. I am a rather new user of symfony framework. The short description of my problem is: form data is not saved to database in generated module. I generate schema from database ant then build model: # symfony propel:build-schema # symfony propel:build-model # symfony propel:build-forms The

[symfony-users] Question on returned object with M-M relations from forms + Doctrine

2009-02-13 Thread Lambert
Hi, I am wondering why the returned object with M-M relations to another object from a SAVED FORM is not equal to the actual objects stored in the database. E.g. in processForm: if ($form->isValid()) { $match = $form->save(); $this->redirect('match/listpoule?id='.$match->Poule->

[symfony-users] Production server routing issues

2009-02-13 Thread Gareth McCumskey
I am having a few issues with a symfony project. We are using version 1.1 and froze the project then used the deploy feature as well to launch it on our web server. When I try to access the site initially you can see the login screen which is the default homepage if a user session has not been star

[symfony-users] sfSimpleForumPlugin

2009-02-13 Thread Tom Haskins-Vaughan
s1.1/linux Hi, I've been looking at the sfSimpleForum plugin, and I quite like it for its simplicity. Before I include it as one of my staple plugins, I just want to see if it is still being actively developed? I notice that it still uses the symfony 1.0 form framework, is there any plan to u

[symfony-users] How to Use the Great sfDoctrineUserPlugin?

2009-02-13 Thread Xin Jia
Hi, Could anybody show me how to use it ? I tried for a long time but failed and don't have any idea about it ? Thanks. - xj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this gro

[symfony-users] Repopulate radios and form fields values in view

2009-02-13 Thread Bob
Forms, symfony 1.2: I have radiobuttons like these: "radio")); ?> "radio")); ?> and I need the first radiobutton to be checked by default, if nothing else defined in memberships radios, but how? Also how can I get access (in the view!) to the fields values and get to know which radiobutton ha

[symfony-users] Problem in figuring out a Doctrine Query for Symfony?

2009-02-13 Thread SeeVik
Hello all I am using Symfony with Doctrine plugin. I am making a simple bulletin board in my application. I want to find out the last post in every topic and display the time in front of topic. In Symfony, in the controller for the screen, I do this... $list_topics = Doctrine::getTable( "Topic

[symfony-users] Re: sf1.2: sfWidgetFormPropelChoiceMany custom form output

2009-02-13 Thread Bob
It was really easy after you replied with this. Thank you! On Feb 12, 4:49 am, jukea wrote: > Hi Anton, > > Here's how I did exactly that in three easy steps !   It's not > super clean /optimal / configurable code,but it works. > > (region_list is the widget name for a 1..n relation in my

[symfony-users] Re: Problem in doing a simple join

2009-02-13 Thread Lupu Alexandru-Emil
requild your model and clear your cache ... you might make it work On Fri, Feb 13, 2009 at 11:37 AM, SeeVik wrote: > > Hello all, > > I am using Symfony with Doctrine. I am having a problem in doing a > simple join. > There is a join in two tables, and when I display the results in the > view...t

[symfony-users] Problem in doing a simple join

2009-02-13 Thread SeeVik
Hello all, I am using Symfony with Doctrine. I am having a problem in doing a simple join. There is a join in two tables, and when I display the results in the view...the page loads successfully. But in the table where I am displaying a field from the joined table, I am getting the following mes

[symfony-users] Re: Dymanic yaml

2009-02-13 Thread Martino Piccinato
another solution is using same class delegate to do the work for you (as in symfony default factories) e.g. variableResolver: MyVariableResolver and then use this class in ProjectConfiguration setup method to set a global variable depending on the context (I'd do this if the logic of the variat

[symfony-users] [sf 1.2] Testing a class inheriting pluginsfGuardUser Propel version

2009-02-13 Thread dreur
Anyone have been able to do it ? It seems I have an autoloading problem half of the time after a symfony cc. Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, sen