[symfony-users] Re: handling multiple subdomains, sharing the "lib" and "apps" folder

2010-02-18 Thread Tony Piper
When you say you have a bunch of subdomains do you mean a few more than the three you listed below, or potentially hundreds? If it's just the three then you might want to create a different environment for each of them with a corresponding 'dev' environment - e.g. one and one-dev, two and two-dev,

Re: [symfony-users] handling multiple subdomains, sharing the "lib" and "apps" folder

2010-02-18 Thread Absalón Valdés
this can help: http://trac.symfony-project.org/wiki/HowToRedirectPublicHtmlToWebFolder 2010/2/18 nick > > I know this question comes up a lot, but I'm having trouble tracking > down the info I need. I'd like to have a bunch of sub-domains: > > one.mysite.com > > two.mysite.com > > three.mysit

Re: [symfony-users] Re: sflive2010 Symfony Core Dev Q&A session

2010-02-18 Thread Benjamin Haines
You are welcome. Fabien's Symfony 2 video is uploading as I type this. Its pretty big, but will be available tomorrow 19th February Friday. On 18 Feb 2010, at 20:58, a...@speedypin.com wrote: > Thanks dude, your efforts are appreciated. Great vids. > > On Feb 17, 5:50 am, Ben Haines wrote: >>

[symfony-users] Re: Problem with Doctrine and Join/GroupBy query

2010-02-18 Thread Olivier
That could have been a reason. Unfortunately, I checked the data and they're all good. What I do not understand is that the query executed directly on mySQL show ywo records when I get only one via Doctrine... On Feb 18, 9:58 pm, Michał Piotrowski wrote: > Hi, > > 2010/2/18 Olivier : > > > > > >

Re: [symfony-users] How to get $sf_user from the model

2010-02-18 Thread Stéphane
Hi, $this->campaigns = $this->getCampaigns(); I suppose "$this" is an sfActions, so 1/do this in your preExecute if for only one sfActions class : protected function getCampaigns(){ return CampaignTable::getCampaigns($this->getUser()->...->Organization); } or write this code in your own action

[symfony-users] How to get $sf_user from the model

2010-02-18 Thread Samuel Morhaim
I use the following line in many places, and I want to make it shorter.. since I will never be pulling the information for ALL organizations.. $this->campaigns = Doctrine::getTable('Campaign')->getCampaigns($this->getUser()->getGuardUser()->Organization); I created the method getCampaigns clas

Re: [symfony-users] General Questions about Symfony / Doctrine

2010-02-18 Thread Stéphane
Hi, You can (re-)configure the Doctrine_Connection a Doctrine_Table or a Doctrine_Manager uses. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Feb 17, 2010 at 8:41 PM, Timo wrote: > Hello, > >

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
I am using 1.4 and that was auto generated code for the CRUD, then how come this is depreciated? .. Now if i forgot the renderhiddenfields.. is this required whenever you unset fields? ) (my template is complex, since it calls panels for ajax processing.) W On Thu, Feb 18, 2010 at 11:43 AM, Sya

[symfony-users] Re: sflive2010 Symfony Core Dev Q&A session

2010-02-18 Thread a...@speedypin.com
Thanks dude, your efforts are appreciated. Great vids. On Feb 17, 5:50 am, Ben Haines wrote: > After Stefan Koopmanschap's talk about community on Saturday at > sflive2010 I feel compelled to give something back ;) > > So here is the Symfony Core Dev Team in HD ;) Enjoy! > > http://www.vimeo.com/

Re: [symfony-users] Problem with Doctrine and Join/GroupBy query

2010-02-18 Thread Michał Piotrowski
Hi, 2010/2/18 Olivier : > Hello everyone, > > I'm a little new to Symfony, I've been browsing the user list, but did > not find an answer to my issue. > I'm using symfony version 1.4 with Doctrine. > I have a query that I create using Doctrine, with the following code: > $q = Doctrine_Query::creat

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Syam
If you forgot "echo $form->renderHiddenFields();", then "unset($this["id"])" make sense since the validator don't try to taint the missing value. Can you paste your template code please ? Samuel Morhaim wrote: unseting id worked.. However.. why is this necessary? The generated Crud, did not

[symfony-users] Problem with Doctrine and Join/GroupBy query

2010-02-18 Thread Olivier
Hello everyone, I'm a little new to Symfony, I've been browsing the user list, but did not find an answer to my issue. I'm using symfony version 1.4 with Doctrine. I have a query that I create using Doctrine, with the following code: $q = Doctrine_Query::create() ->from('ValueList v

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Syam
Take a look :/ $request->getParameter('id')));/ Don't think it's correct because symfony framework use an array container for submitted values. Regarding your model, you should have something like "campaign[]" POST container. So to get the posted id from current record, and assuming you are

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2010-02-18 Thread Nicolas
@gino pilotino When I use your code, the filters are working well, but when I click on a pagier link, it looses the filters selection. On 30 déc 2009, 19:34, gino pilotino wrote: > I use it like the following: > > public function executeFooList(sfWebRequest $request) >   { >     $query = Doctrin

[symfony-users] sfDoctrineRecordI18nFilter

2010-02-18 Thread Miguel Ibero
Hi all, it's my first time writing here. I came across a strange bug when using a Translated Doctrine_Record that has a many-to-many relationship which is also translated. When submitting a form the default cuture is added to the Translations without being sent. config/doctrine/schema.yml A

[symfony-users] Error when checking out Symfony 2.0 SVN code

2010-02-18 Thread brent960
I've just tried unsuccessfully to checkout the latest Symfony 2.0 code from the Subversion mirror. I'm using a Windows Vista 64-bit environment, and I attempted the checkout using Tortoise SVN. The checkout starts, and runs for a while, and then it ends with the following errors written to the To

[symfony-users] handling multiple subdomains, sharing the "lib" and "apps" folder

2010-02-18 Thread nick
I know this question comes up a lot, but I'm having trouble tracking down the info I need. I'd like to have a bunch of sub-domains: one.mysite.com two.mysite.com three.mysite.com They all live on the same server. I'd like for them all to have different databases, but to share the "lib" and "a

[symfony-users] General Questions about Symfony / Doctrine

2010-02-18 Thread Timo
Hello, i work at a software developement office in germany. i developed a software named "responsemanager" for our customers. it's got an online archive, data-export, statistics and so on (for our customers only, so no demo). For the new version of this software we want to use symfony as framewor

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Michał Piotrowski
2010/2/18 Samuel Morhaim : > I had to define it, because initially it was giving me some headaches > with just creating the model, so by adding it i got rid of the > problem.. > > Then i created the auto generated CRUD which worked fine for edit, and > then i started adding ajax effects and this st

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
I had to define it, because initially it was giving me some headaches with just creating the model, so by adding it i got rid of the problem.. Then i created the auto generated CRUD which worked fine for edit, and then i started adding ajax effects and this started happening... 2010/2/18 Michał

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Michał Piotrowski
2010/2/18 Samuel Morhaim : > unseting id worked..  However.. why is this necessary? The generated > Crud, did not do this initially, why is it necessary now? because i > unsetted one element, then i always need to unset id and such ? Just guessing - you have defined id column. >>> >>> SCHEMA >>>

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
unseting id worked.. However.. why is this necessary? The generated Crud, did not do this initially, why is it necessary now? because i unsetted one element, then i always need to unset id and such ? On Thu, Feb 18, 2010 at 11:09 AM, Germana Oliveira wrote: > what about: > > unset( >

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Germana Oliveira
what about: unset( . $this['id'] ); 2010/2/18 Daniel Lohse > Maybe yu forgot to do "echo $form->renderHiddenFields();" in your form so > the ID that's already assigned to the object is not transmitted when > submitting the form? > > Daniel > > On 18.02.2010, at 16:57, Samuel Mor

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Daniel Lohse
Maybe yu forgot to do "echo $form->renderHiddenFields();" in your form so the ID that's already assigned to the object is not transmitted when submitting the form? Daniel On 18.02.2010, at 16:57, Samuel Morhaim wrote: > > /** > * Campaign Entry Form. > */ > > class CampaignForm extends Base

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
wrote: > This looks fine. Can we see your form's configure() method? > > On Thu, Feb 18, 2010 at 16:08, Samuel Morhaim > wrote: >> Here goes the extra info. :) >> >> 1. I am just doing a simple edit.  (based almost on the generated CRUD >> actions) >> 2. Yes, it is unique, (schema below). >> 3.

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Gábor Fási
This looks fine. Can we see your form's configure() method? On Thu, Feb 18, 2010 at 16:08, Samuel Morhaim wrote: > Here goes the extra info. :) > > 1. I am just doing a simple edit.  (based almost on the generated CRUD > actions) > 2. Yes, it is unique, (schema below). > 3. I am NOT trying to up

[symfony-users] distance_of_time_in_words and i18n

2010-02-18 Thread Andreas Stephan
Hi, I am having no luck getting distance_of_time_in_words helper to display internationalized output. I set i18n to true and default_culture to 'de' in settings.yml and also tried to set the user culture in factoreis.yml but no matter what I try, the results are always output in English. The DateH

Re: [symfony-users] Re: White screen only in production enviroment

2010-02-18 Thread Samuel Morhaim
In my case, I was working on a new installed php server, and I had to modify /etc/php.ini to enable errors, etc etc. Not recommended for production envs. so be sure to turn them off before going live. On Thu, Feb 18, 2010 at 9:39 AM, PachinSV wrote: > when I upload a symfony project and receive

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
Here goes the extra info. :) 1. I am just doing a simple edit. (based almost on the generated CRUD actions) 2. Yes, it is unique, (schema below). 3. I am NOT trying to update/modify the ID since it is unique, etc. THAT IS the problem.. for some reason it trying to set the ID to empty. OR should n

[symfony-users] Re: White screen only in production enviroment

2010-02-18 Thread PachinSV
when I upload a symfony project and receive this kind of error, the problem is the folder permission. If you are you using Linux in you prod enviroment, you have to do this: - Give 755 recursive permissions to the projects folder - Give 777 recursive permission to the log and cache folder inside y

Re: [symfony-users] Re: Id being lost on update..

2010-02-18 Thread Michał Piotrowski
I'm wondering why do you want to update id? I assume that you are using id as primary key, so updating it to other value just doesn't makes sense. Maybe someone will help you if you explain what do you want to do. Actually we don't have enough information on such things as: - what do you want to d

[symfony-users] Re: Id being lost on update..

2010-02-18 Thread Samuel Morhaim
Anyone? On 2/17/10, Samuel Morhaim wrote: > If it helps.. this is the error, of course because it lost the id.. > > SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry > '0' for key 1 > stack trace > > * at () > in > SF_SYMFONY_LIB_DIR/plugins/sfDoctrinePlugin/lib/vend

Re: [symfony-users] Re: sflive2010 Symfony Core Dev Q&A session

2010-02-18 Thread Dennis Benkert
Great, thanks! - Dennis 2010/2/17 Ben Haines : > Absolutely... as I get to upload them. Unfortunately power is scarce a > the conference and handbrake doesn't run that fast on my Mac ;) > > I'll have uploaded them all by the end of the week. > > On 17 Feb, 14:56, Dennis Benkert wrote: >> This is

Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 37 Messages in 14 Topics

2010-02-18 Thread joost . farla
Beste, Tot en met 18 februari ben ik niet aanwezig op kantoor. U kunt contact opnemen met Wout Withagen: w...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en internet applicaties Dunantstraat 1c | 5017 KC Tilburg

Re: [symfony-users] Re: Certification programme

2010-02-18 Thread Alexandru-Emil Lupu
Me as well ... but ... if would be an online course / test would be nice ... I am allready Certified Scrum Master, so, would be nice as well to be Certified Symfony Master :P +1 On Thu, Feb 18, 2010 at 1:52 PM, Stéphane wrote: > +1 > > > Before Printing, Think about Your Environmental Respons

Re: [symfony-users] Re: Certification programme

2010-02-18 Thread Stéphane
+1 Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Feb 18, 2010 at 12:50 PM, Darmen Amanbayev wrote: > +1 looking forward to this too. > > On 18 фев, 12:41, Apul Gupta wrote: > > Hi, > > > > Is there an

[symfony-users] Re: Certification programme

2010-02-18 Thread Darmen Amanbayev
+1 looking forward to this too. On 18 фев, 12:41, Apul Gupta wrote: > Hi, > > Is there any certification program for symfony? > > Thanks > Apul Gupta -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony

[symfony-users] Re: Symfony frontend sort by th

2010-02-18 Thread ziclo
Hello, That what i'm going to do. Thank you On 18 fév, 09:12, Gareth McCumskey wrote: > Why not just implement it yourself? You don't need to have everything > pre-written for it. Simply make the column heading a link pointing to > an action that re-runs the query with the correct ORDER BY sql i

[symfony-users] Re: Symfony frontend sort by th

2010-02-18 Thread ziclo
Thats what i did but it didn't work. I will try again because i have more experience now. Thank you On 18 fév, 07:56, Tom Ptacnik wrote: > If you want a "native" method you can look into generated backend > actions and templates and replicate this in your frontend. > > On 16 ún, 19:05, ziclo wr

[symfony-users] Re: Why is not created the field "id" in the table?

2010-02-18 Thread Thibault Jouannic
Hi, You already define a (composite) primary key on your table, there is no need for an extra id. If you need the id field, remove the "primary: true" options in AmigoUsuario. If you do that, you might want to define some index on your table. Cheers. Thibault J. On Feb 17, 8:11 pm, Javier Garci

Re: [symfony-users] Symfony frontend sort by th

2010-02-18 Thread Gareth McCumskey
Why not just implement it yourself? You don't need to have everything pre-written for it. Simply make the column heading a link pointing to an action that re-runs the query with the correct ORDER BY sql in it On Sat, Feb 13, 2010 at 3:55 PM, ziclo wrote: > Hi, > > I would like to be able to s