[symfony-users] DATA UNION

2010-07-22 Thread jan
Is it possible to make a data union in symfony? I have query 1 and query 2 how can I make a data union? QUERY 1 $c = new Criteria(); $start_date= $this-date.' 12:00:00 AM '; $end_date= $this-endDate.' 11:59:59 PM'; $userid = $this-getLoggedInUser()-getID();

[symfony-users] sfFacebookConnectPlugin cookie issues?

2010-07-22 Thread jostster
It seems that facebook has changed their cookies around. Calling $this-getUser()-getCurrentFacebookUid() would return their user id but now it just returns null. Same for $sf_user- getCurrentFacebookUid(). $sf_user-isAuthenticated shows the user is authed but it will not return their facebook

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Lene Preuss
Hi there, any ideas, anybody? I'm kind of stuck here... Thanks, Lene On Jul 15, 6:55 pm, Lene Preuss lene.pre...@googlemail.com wrote: Hi list, I'm a newb to symfony, so forgive me if I'm asking a dumb question. I jumped into symfony writing unit tests. My tests run fine when I run them as

Re: [symfony-users] sfFacebookConnectPlugin cookie issues?

2010-07-22 Thread Sela Yair
not really, I just managed to fix the problem I had with this plugin to use facebook connect and using $sf_user-getCurrentFacebookUid() return to me the real user id in facebook. I used firebug to actually read the response I get from facebook server, have you tried that? On 21 July 2010 18:07,

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-22 Thread Sela Yair
what actually did you change in the 5.0.0 release? On 18 July 2010 19:37, fizyk fi...@fizyk.net.pl wrote: Hello, I'm trying to upgrade sfDoctrineGuardPlugin to the new version, and at first found that surprised that although in changelog said there was only change (fix) to the Remember Me?

[symfony-users] Re: caching problem in firefox

2010-07-22 Thread Lea Haensenberger
Does nobody know that problem? I'm a bit lost and I'll have to turn off caching if we can't solve the problem. Does anyone have any idea what could be the reason for that behaviour? Lea On Jul 16, 3:52 pm, pghoratiu pghora...@gmail.com wrote: Do you have this behavior also with the development

[symfony-users] Symfony2 - routing with subdomains

2010-07-22 Thread gordonslondon
Hi, I just see that symfony2 router doesn't use the host part of the uri. exemple, both will be routed the same : www.mysite.com/myaction blog.mysite.com/myaction is this possible actually to route subdomains in Sf2 ? if no is there a solution now ? many thanks -- If you want to report a

[symfony-users] defining primary key type as guid/uuid

2010-07-22 Thread gopi
We are using symfony 1.4 and want to set the type of the primary key in some of our tables as GUID/UUID instead of the normal integer with autoincrement. This will help in having random keys instead of easily guessable autoincrement integers. Is this possible in symfony 1.4? We checked the

[symfony-users] Re: backend: forward to another module

2010-07-22 Thread Tom Ptacnik
I think it's because when you want to edit something, you must say what This edit action in mod_B don't know which object it should edit (you didn't send any id, or object) On 20 čnc, 16:10, Martin Henits martin.hen...@gmail.com wrote: in one of my backend modules (mod_A), I need to put a

[symfony-users] Re: Admin generator edit/delete action link error

2010-07-22 Thread Tom Ptacnik
One appliacation in your project can use index.php (probably frontend) the others must use another frontend controller which isn't automaticly executed. Solutions how to add /admin/ or /backend/ into your url are several. Try to look there, it might help you.

[symfony-users] new symfony 2 project

2010-07-22 Thread birko
Hi there. In our company we are creating new project . we use by now the symfony 1.x framework but the new project we would like to build on symfony 2. I checkouted the svn version of symfony 2. In the official symfony 2 page there is only the sandbox tutorial. Im looking for something like

Re: [symfony-users] new symfony 2 project

2010-07-22 Thread Gábor Fási
Symfony2 is still under heavy development, and is not yet ready to be used in production. Use symfony 1.4. On Thu, Jul 22, 2010 at 14:08, birko malybi...@gmail.com wrote: Hi there. In our company we are creating new project . we use by now the symfony 1.x framework but the new project we would

[symfony-users] How to style embedded forms

2010-07-22 Thread Samuel Morhaim
Can someone point me on how to style embedded forms? I am able to embed a form, but now it looks completely as part of my main form. In reality I want them to look like 2 sections, with one submit, but i want to style the bottom part a bit differently.. being on a separate box than the main

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Dennis
I am hving great difficultities with PHPUnit and Symofny myself. If you are doing any changes to the database out of band, you can forget doing all your tests in one run. My next approach is to run my tests (each with 15 assertions, in separate files. I will run them using a bash script and

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Dennis
Whoops! I was directed by google search to the middle of your article, and it LOOKED like you were using PHPUnit. My apologies. On Jul 22, 7:18 am, Dennis gear...@sbcglobal.net wrote: I am hving great difficultities with PHPUnit and Symofny myself. If you are doing any changes to the database

Re: [symfony-users] Symfony2 - routing with subdomains

2010-07-22 Thread Brandon Turner
On 7/22/10 7:39 AM, gordonslondon wrote: I just see that symfony2 router doesn't use the host part of the uri. exemple, both will be routed the same : www.mysite.com/myaction blog.mysite.com/myaction is this possible actually to route subdomains in Sf2 ? if no is there a solution now ?

[symfony-users] Re: caching problem in firefox

2010-07-22 Thread Lea Haensenberger
I found out that when disabling the memory cache in firefox or when setting check.doc_frequency to 1, i.e. request page on every load, everything works fine. doc_frequency is usually set to 3, i.e. check validity of the page by looking at the modified date and reload if necessary, and the modified

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Lene Preuss
Well no, I'm using lime, I just wrote a wrapper that makes the tests look more like PHPUnit, indeed. ;-) On Jul 22, 4:20 pm, Dennis gear...@sbcglobal.net wrote: Whoops! I was directed by google search to the middle of your article, and it LOOKED like you were using PHPUnit. My apologies. On

[symfony-users] Form date field

2010-07-22 Thread wueb
Hi, All my date fields on the forms only have the years from 2005-2015? anynone know where can i change the interval? -- 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

Re: [symfony-users] Form date field

2010-07-22 Thread Michał Piotrowski
Hi, 2010/7/22 wueb webmaster@gmail.com: Hi, All my date fields on the forms only have the years from 2005-2015? anynone know where can i change the interval? $years = range(1900, 2015); $years_list = array_combine($years, $years); $this-widgetSchema['date'] = new

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Florian
Hi! you normally can launch a test by doing : php test/unit/StoreTableTest.php By this way, you have the full output of your test script, even exceptions (dubious means script didn't ended as attended ( ie: fatal errors, uncaught exceptions, die(), ...). On 22 juil, 17:04, Lene Preuss

[symfony-users] Re: sfFacebookConnectPlugin cookie issues?

2010-07-22 Thread jostster
What was your solution to getting $sf_user-getCurrentFacebookUid() to work? On Jul 22, 1:03 am, Sela Yair tzi...@gmail.com wrote: not really, I just managed to fix the problem I had with this plugin to use facebook connect and using $sf_user-getCurrentFacebookUid() return to me the real user

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-22 Thread Jonathan Wage
We added the forgot password, register, etc. functionality. Everything else stayed the way it was. - Jon On Thu, Jul 22, 2010 at 3:40 AM, Sela Yair tzi...@gmail.com wrote: what actually did you change in the 5.0.0 release? On 18 July 2010 19:37, fizyk fi...@fizyk.net.pl wrote: Hello, I'm

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Lene Preuss
Yes, as I described above, this fails with a Doctrine_Connection_Exception with message 'There is no open connection': php ./test/unit/StoreTest.php PHP Fatal error: Uncaught exception 'Doctrine_Connection_Exception' with message 'There is no open connection' in lib/vendor/symfony/lib/

Re: [symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Gábor Fási
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/08#chapter_08_doctrine_unit_tests On Thu, Jul 22, 2010 at 18:36, Lene Preuss lene.pre...@googlemail.com wrote: Yes, as I described above, this fails with a Doctrine_Connection_Exception with message 'There is no open connection': php

[symfony-users] Re: PHPUnit with symfony1.4 and Hudson fails with Propel PDO

2010-07-22 Thread Dennis
I had a version that worked before,2 days ago. I went back to it and it still worked, thank goodness. I kept the new, not working version. I slowly integrated the old into the new and the new started working. I could not tell which line did it, dang! I went back and forth between versions as soon

[symfony-users] Re: development cycle problems

2010-07-22 Thread Dennis
I got it working, by erasing the contents of the database, not dropping it. Then, I somehow had some dangling code lines uknowing shrug that creeped in, and then it didn't work. Many many hours later, after reverting to the old working version, I then came to the conclusion about the extra code

[symfony-users] direct sql in Doctrine_Migration class

2010-07-22 Thread axel at
hello, I would need an example how to use direct sql statements within the up() function of an doctrine migration class (extends Doctrine_Migration_Base) thx -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] How to style embedded forms

2010-07-22 Thread Gustavo Adrian
I managed to do whay you mention by changing some templates of the module autogenerated for the backend. In _form_fieldset.php you have the loop that iterates over the fields. You could then check the name of the field and, if it's the name of the embedded form, you could then surround it by a div

Re: [symfony-users] Re: caching problem in firefox

2010-07-22 Thread Gustavo Adrian
Hi, Did you try to disable local caching on the action with headers Cache-control and Pragma to see what happens? $this-getResponse()-setHttpHeader(Cache-Control, no-cache); $this-getResponse()-setHttpHeader(Pragma, no-cache); $this-getResponse()-setHttpHeader(Expires, 0); On Thu, Jul 22, 2010