[symfony-users] Re: Custom error page for Integrity constraint violation

2010-03-29 Thread Campezzi
if successful */ public function delete(Doctrine_Connection $conn = null) Hope to have helped! Best Regards, Thiago Campezzi On Mar 29, 9:01 am, bretth brett...@gmail.com wrote: Hi, I'm getting the error SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent

[symfony-users] Re: Setting default error messages for forms (1.4.1)

2009-12-18 Thread Campezzi
Thanks! This worked like magic :) Best Regards, Thiago Campezzi campe...@gmail.com On 17 dez, 20:21, xplo xplo...@gmail.com wrote: Hi, it s probably because you call setMessage after the validator has been created, the text message is set when the validator is created and wont be changed

[symfony-users] Setting default error messages for forms (1.4.1)

2009-12-17 Thread Campezzi
/ exceptions, yet nothing actually happens and the same old Required. and Invalid. messages pop up on my form. Is there something incredibly dumb I'm missing here or is this just a bug in sf 1.4? Thanks for your time! Best Regards, Thiago Campezzi campe...@gmail.com -- You received this message because

[symfony-users] Looking for suggestions...

2009-12-14 Thread Campezzi
Hello everyone, I'm starting a new project and I'd like some input from the community as to what is the best way to approach this implementation. Here it goes: The project goal is to automate the client's invoice generation and management (email notifications,etc). The client already has a custom

[symfony-users] Re: Looking for suggestions...

2009-12-14 Thread Campezzi
a magical solution ;) Thanks again and best regards, Thiago Campezzi campe...@gmail.com On 14 dez, 16:57, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Sorry for my previous mail. i was on the move and i just remembered Symfony 1.2 ... instead of symfony (1.4, doctrine 1.2) About your initial

[symfony-users] Re: Looking for suggestions...

2009-12-14 Thread Campezzi
(heard from others ): Change your job, or change your job. or, of course the client ... Alecs On Mon, Dec 14, 2009 at 10:46 PM, Campezzi campe...@gmail.com wrote: Hi Alecs, thanks for your replies! My initial idea was to upgrade their entire plataform to run on symfony, but they didn't

[symfony-users] Re: Looking for suggestions...

2009-12-14 Thread Campezzi
and getting more freedom with symfony :) Thanks again for your input! Best Regards, Thiago Campezzi campe...@gmail.com On Dec 14, 8:03 pm, Alexandru-Emil Lupu gang.al...@gmail.com wrote: That basically i would call it migration from an old system to the new system. Yes ... you can do that ... also

[symfony-users] Re: Foreign key violation when saving embedded forms

2009-06-30 Thread Campezzi
starting point :) Also be sure to read through some of the messages posted to that TRAC discussion, they really helped me grasp the concept of embedded forms a bit better! ;) Regards, Thiago Campezzi On Jun 29, 7:12 am, Java geek develo...@jsptube.com wrote: Sorry, there was a typo

[symfony-users] Re: Multiple selects for one field : How to do that ?

2009-06-21 Thread Campezzi
each widget will display, but I think you can handle that part - the trick is passing the query option when creating the widget. More info here: http://www.symfony-project.org/api/1_2/sfWidgetFormDoctrineSelect Hope that was helpful! Kind Regards, Thiago Campezzi On Jun 20, 9:22 pm, William

[symfony-users] Re: Timing for Registering Routes in sf1.0

2009-06-19 Thread Campezzi
words, you're creating possible url conflicts, and to avoid that you'll have to code some sort of reserved keywords system in the category creation part. Hope that helped clear up things a bit! Regards, Thiago Campezzi On Jun 19, 3:00 pm, Richtermeister nex...@gmail.com wrote: Hi all, there's

[symfony-users] Re: Option ids in routing rules?

2009-06-08 Thread Campezzi
Hi Eno, Not sure if this is the best solution, but nothing stops you from creating another rule without the page parameter: url: /getarticle_by_id/:id param: { module: xxx, action: yyy } url: /getarticle_by_id/:id/:page param: { module: xxx, action: zzz } Cheers Thiago Campezzi On Jun 8, 12

[symfony-users] Re: sfDoctrineRoute does not match

2009-06-04 Thread Campezzi
if you have any luck. Kind Regards, Campezzi On Jun 3, 12:23 pm, Eric ericteub...@googlemail.com wrote: Hi, I have a form and I use the following route as url: --- routing.yml messages_view_conversation_update:   url:       /messages/reply/:id/update #  class:     sfDoctrineRoute

[symfony-users] Re: Which classes should I use for this validation logic?

2009-06-03 Thread Campezzi
-Validation#chapter_02_global_validators Hope that was a valid starting point! :) Best Regards, Campezzi On Jun 2, 12:43 pm, Alex Gilbert a...@valueneutral.com wrote: Field A is not required, but if Field A does contain a value then Field B is required. Can I use sfValidatorOr to do

[symfony-users] Re: Weird upload problem

2009-06-03 Thread Campezzi
can't set a specific function to handle the file name (in other words, you're stuck with the name symfony generates by default). This bug is also probably documented in Trac, if you need more info. Good luck taming your embedded forms! :) PS: Are you brazilian too? Best Regards, Thiago Campezzi

[symfony-users] Re: Integrate sfGuardUser and sfGuardUserProfile in the same Admin-Backend Module

2009-05-29 Thread Campezzi
Hey Daniel, Yup, embedding is the way. I was about to point you to this excellent tutorial when you found the answer by yourself: http://www.symfony-project.org/blog/2008/11/12/call-the-expert-customizing-sfdoctrineguardplugin A good read, anyways. Cheers! On May 28, 7:55 pm, halla

[symfony-users] Re: sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-26 Thread Campezzi
Thanks Fabien, that's exactly what I wanted! I just didn't know exactly which method to override. I'm still finding my way around symfony ;) Cheers! Best Regards, Campezzi On May 26, 6:09 am, FlyLM [ML] flylm...@gmail.com wrote: 2009/5/25 Campezzi campe...@gmail.com: Hi Fabien

[symfony-users] sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-25 Thread Campezzi
Hi there! I'm getting started with sfDoctrineGuardPlugin and after doing a few tutorials, I started to implement it in one of my projects. I have created a registration form and embedded the Profile class form. So far, so good - whenever a new user registers, both the sfGuardUser and Profile

[symfony-users] sfDoctrineGuard groups/permissions/credentials problem

2009-05-25 Thread Campezzi
Hi there, I've been messing with sfDoctrineGuardPlugin for the last few days (as you can notice from my posts in this period) and I'm running into a strange problem. - It is my understanding that a user inherits permissions from his groups. - It is also my understanding that during the signIn()

[symfony-users] Re: sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-25 Thread Campezzi
field in an attempt to be added to another group, one with a different permission set? Best Regards, Campezzi On May 25, 12:53 pm, FlyLM [ML] flylm...@gmail.com wrote: Hi, If you have always sfDoctrineGuardPlugin installed, take a look at this file line 84 (savegroupsList method) /lib/form

[symfony-users] Re: sfDoctrineGuard groups/permissions/credentials problem

2009-05-25 Thread Campezzi
if that tutorial got a correction ;) Thanks again :) On May 25, 5:05 pm, Campezzi campe...@gmail.com wrote: Hi there, I've been messing with sfDoctrineGuardPlugin for the last few days (as you can notice from my posts in this period) and I'm running into a strange problem. - It is my understanding

[symfony-users] Re: Best Practice for sfDoctrineGuardPlugin - how to tie other tables with user-related content?

2009-05-20 Thread Campezzi
to the Profile class? :) Thanks and kind regards, Campezzi On May 19, 9:01 pm, David Ashwood da...@inspiredthinking.co.uk wrote: Use sfGuard as the root for all that need to reference the user. The profile is just one of them.  Keep it simple, keep it dry :) -Original Message- From: symfony-users

[symfony-users] sfDoctrineGuardPlugin: linking Groups to other model

2009-05-20 Thread Campezzi
related to the Department he's being added to and setting it to his sfGuardUser. Did I make sense? :) Thanks Campezzi --~--~-~--~~~---~--~~ 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: About method sfWidgetFormPropelChoice

2009-05-06 Thread Campezzi
variable on the form class by using the getOption method of the sfForm class: $this-getOption('user_id') Mix this with a custom method for getting the form field choices and I guess you have a solution there! Hope to have helped. Good luck! :) Thiago Campezzi On May 6, 11:45 am, Stephen stephen.j.t

[symfony-users] Re: About method sfWidgetFormPropelChoice

2009-05-06 Thread Campezzi
. See ya! Campezzi On May 6, 12:30 pm, Stephen stephen.j.t...@gmail.com wrote: I think I need read through the sfForm API lol On May 7, 1:14 am, Campezzi campe...@gmail.com wrote: Hi Stephen, In your action code, when you're creating the form so that it's available on the view, you can

[symfony-users] Re: we are going to convert a site from Propel to Doctrine. What are the pain points?

2009-04-28 Thread Campezzi
. IMO checking the actions is the worst part, since projects usually have several modules and countless actions - checking and updating one- by-one is really, really boring and error-prone. Good luck! Best Regards, Thiago Campezzi On Apr 25, 3:44 pm, Lawrence Krubner lkrub...@geocities.com wrote

[symfony-users] Re: Accessing doctrine route object in layout.php

2009-04-10 Thread Campezzi
there must be something simple that I'm over looking, but I can't put my finger on it. Anyone? Cheers, Tom - Start Original Message - Sent: Thu, 9 Apr 2009 08:00:55 -0700 (PDT) From: Campezzi campe...@gmail.com To: symfony users symfony-users@googlegroups.com Subject: [symfony-users

[symfony-users] Re: Accessing doctrine route object in layout.php

2009-04-09 Thread Campezzi
(sfWebRequest $request) { $this-image = $request-getParameter('id') .'.png'; } and then obviously you could use this variable on the view: img src=. $image . / Hope to have helped! Best Regards, Thiago Campezzi On Apr 9, 12:09 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote

[symfony-users] Re: how to use generator.yml

2009-04-01 Thread Campezzi
As everyone else said, generator.yml is a configuration file that is only valid to configure modules created with the doctrine:generate- admin [applicationName] [modelName] command (or its Propel counterpart). That being said, you can invoke generate-admin to create configurable admins in any

[symfony-users] Re: Upload file name

2009-04-01 Thread Campezzi
Glad I could help! Rock on :) On Mar 31, 12:04 pm, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Campezzi, thanks a lot! This indeed works! I did the Jobeet tutorial, but oviously I read over it.         public function generateFileFilename(){                 return 'testnow.pdf

[symfony-users] Re: Unchecked check boxes (Apologies for the double post.)

2009-03-31 Thread Campezzi
From what I could gather, the problem is that this is a dynamic form, where the user can add new fields on the fly. When the form is submitted, the script doesn't know exactly how many checkboxes exist (because the user could have created 2, 3, 10, or 50 of them). That's why Mark can't use

[symfony-users] Re: Upload file name

2009-03-31 Thread Campezzi
I didn't test this, but I remember seeing something like that in the Jobeet tutorial: If a generateLogoFilename() method exists in the model, it will be called by the validator and the result will override the default generated logo filename. The method is given the sfValidatedFile object as an

[symfony-users] Propel vs. Doctrine - Pros and Cons

2009-03-24 Thread Campezzi
Hello there, I've been a PHP developer for some time now, and recently I began exploring the world of Symfony. So far, I like what I see, but there's one thing that I still haven't quite figured out: in a real-world environment, what are the basic advantages and drawbacks of Propel and Doctrine?

[symfony-users] Re: Propel vs. Doctrine - Pros and Cons

2009-03-24 Thread Campezzi
, Campezzi On Mar 24, 9:58 am, Campezzi campe...@gmail.com wrote: Hello there, I've been a PHP developer for some time now, and recently I began exploring the world of Symfony. So far, I like what I see, but there's one thing that I still haven't quite figured out: in a real-world environment

[symfony-users] Re: Missing Javascript Libraries after PEAR installation

2009-03-21 Thread Campezzi
\sfProtoculousPlugin\web \js However, my PHP data folder is: C:\wamp\bin\php\php5.2.9-1\data\symfony\web\sf Now I'm even more confused than I were initially. Help! :) On Mar 21, 5:59 pm, Campezzi campe...@gmail.com wrote: Hi there, I recently installed symfony on my test server at home (Windows box running

[symfony-users] Re: Missing Javascript Libraries after PEAR installation

2009-03-21 Thread Campezzi
since I have never used Script.aculo.us with Symfony. But out of curiosity, which Ajax tutorial? Also, what Symfony version are you using? On Sun, Mar 22, 2009 at 9:59 AM, Campezzi campe...@gmail.com wrote: Hi there, I recently installed symfony on my test server at home (Windows box

[symfony-users] Re: Missing Javascript Libraries after PEAR installation

2009-03-21 Thread Campezzi
- I downloaded the symfony source from symfony- project.org and, browsing the files, I see that the file structure there looks just like my installation does. Any other ideas? Thanks again, Campezzi On Mar 21, 7:30 pm, Lee Bolding l...@leesbian.net wrote: Possibly your the php.ini for cli

[symfony-users] Re: Missing Javascript Libraries after PEAR installation

2009-03-21 Thread Campezzi
Hi again Lee, thanks for answering :) Indeed, installing v1.1 gave me the folder I was missing. Maybe there is something wrong with the 1.2.4 package after all... I wonder how that could be informed to the folks that take care of the project? Kind Regards, Campezzi On Mar 21, 8:28 pm, Lee

[symfony-users] Re: Missing Javascript Libraries after PEAR installation

2009-03-21 Thread Campezzi
to the Ajax Tutorial for 1.2 Thanks for the help :) On Mar 21, 8:51 pm, Campezzi campe...@gmail.com wrote: Hi again Lee, thanks for answering :) Indeed, installing v1.1 gave me the folder I was missing. Maybe there is something wrong with the 1.2.4 package after all... I wonder how that could