Re: [symfony-users] Trying to replace the default 'Required' message

2010-08-23 Thread Michał Piotrowski
Eh, sorry, 1 array parameters array('required' => true) 2 array messages array('required' => 'Pole wymagane.') > 'required' => true, >       'invalid' => 'An account with that email address already > exists. If you have forgotten your password, click "cancel", then > "Reset My Password."'), > >

Re: [symfony-users] Trying to replace the default 'Required' message

2010-08-23 Thread Michał Piotrowski
2010/8/24 Javier Garcia : >  Hi, > > im trying to replace the default 'Required' message in this validator: > >    $this->setValidator('email', new sfValidatorAnd(array( >      new sfValidatorEmail(array('required' => true, 'trim' => true)), >      new sfValidatorString(array('required' => true, 'm

[symfony-users] Trying to replace the default 'Required' message

2010-08-23 Thread Javier Garcia
Hi, im trying to replace the default 'Required' message in this validator: $this->setValidator('email', new sfValidatorAnd(array( new sfValidatorEmail(array('required' => true, 'trim' => true)), new sfValidatorString(array('required' => true, 'max_length' => 80)), new sfVa

[symfony-users] Re: created_at gets deleted on edit

2010-08-23 Thread Tom Ptacnik
Try to unset it in the form class (configure method) . . . . . unset($this['updated_at']); On 18 srp, 15:15, Christopher Schnell wrote: > A part of it, I can answer myself: > > the updated_at column is set to null if I press "save" in the Form and do not > really make an update (i.e. leave all v

Re: [symfony-users] Please advice code structure for Google Maps auto-correct of address

2010-08-23 Thread Gustavo Adrian
You should create a widget and embed the JS needed there. Here is a nice tutorial about this: http://www.symfony-project.org/more-with-symfony/1_4/en/05-Custom-Widgets-and-Validators On Mon, Aug 23, 2010 at 8:49 PM, Jochen Daum wrote: > Hi, > > for my application here I need to "auto-correct" a

Re: [symfony-users] Send Mails

2010-08-23 Thread Gustavo Adrian
Did you try using the Swift Mailer that comes with Symfony? try sending with SMTP using the SMTP server of your gmail account (if you don't have your own email account, of course). Here says how: http://www.symfony-project.org/gentle-introduction/1_4/en/11-Emails

[symfony-users] Please advice code structure for Google Maps auto-correct of address

2010-08-23 Thread Jochen Daum
Hi, for my application here I need to "auto-correct" an address with Google Maps. What I mean by that is someone may enter 1 Wellington street, Herne bay, Auckland but because of suburb dependent business logic I need 1 Wellington Street, Freemans Bay, Auckland, 1011 which would be returned fr

Re: [symfony-users] Re: Doctrine/MySQL: double up of id index

2010-08-23 Thread Jochen Daum
Hi, On Tue, Aug 24, 2010 at 11:08 AM, pghoratiu wrote: >> this may sound quite minor, but I'm just getting into Symfony and am >> interested in some of the details. >> >> When I run symfony doctrine:insert-sql, the tables created always have >> a duplicate index, one called PRIMARY and one called

[symfony-users] Re: Doctrine/MySQL: double up of id index

2010-08-23 Thread pghoratiu
Post the schema you use. Usually a PK ID is autogenerated for a given table if none was specified. gabriel On Aug 24, 1:52 am, Jochen Daum wrote: > Hi, > > this may sound quite minor, but I'm just getting into Symfony and am > interested in some of the details. > > When I run symfony doctrin

Re: [symfony-users] Send Mails

2010-08-23 Thread Jochen Daum
Hi, On Tue, Aug 24, 2010 at 10:51 AM, vero wrote: > I have tried configuring my computer to use the fuction mail() . > I have tried use Zend Framework,, exactly like in jobeet. > But nothing works. The code was compiled, but no email was send. > > Please, help me! I need e-mails in my project.

[symfony-users] resubmit login on certain module actions, every x minutes

2010-08-23 Thread Jochen Daum
Hi, I have an application that requires an additional resubmission of login, if you are accessing certain personal information - similar to some online banking when you make certain transactions. I'd like it to prompt a login, if you haven't accessed specific sections for say 5 minutes. Is there

[symfony-users] Doctrine/MySQL: double up of id index

2010-08-23 Thread Jochen Daum
Hi, this may sound quite minor, but I'm just getting into Symfony and am interested in some of the details. When I run symfony doctrine:insert-sql, the tables created always have a duplicate index, one called PRIMARY and one called id. Normally this wouldn't matter much, I'm just wondering for bi

[symfony-users] Send Mails

2010-08-23 Thread vero
I have tried configuring my computer to use the fuction mail() . I have tried use Zend Framework,, exactly like in jobeet. But nothing works. The code was compiled, but no email was send. Please, help me! I need e-mails in my project. -- If you want to report a vulnerability issue on symfony, pl

[symfony-users] Generate Document Classes for MongoDb

2010-08-23 Thread Michael
I'm trying to move from MySQL to MongoDb, and start creating a test class: container- >getDoctrine_Odm_Mongodb_DefaultDocumentManagerService(); $user = new User(); $user->setName('John Doe); $dm->persist($user); $dm->flush(); But I keep getting this error: "No identifier/primary key specified

Re: [symfony-users] Storing a list of arbitrary length to the DB

2010-08-23 Thread Daniel Lohse
You are going to model this as a many-to-many relation between a (one) Recipe and its (many) Ingredients where each Recipe can have an infinite number of ingredients and one ingredient can belong to an infinite number of recipes. :) You'll find a description of how to do many-to-many relationshi

[symfony-users] Storing a list of arbitrary length to the DB

2010-08-23 Thread json2001
I'm very new to symfony, in fact I'm still reading the gentle intro and working through Jobeet, and this question is probably very simple (I hope!) as I image this comes up all the time. Users will be creating recipes. I would like to keep another table of ingredients for autocompletion on the Cre

Re: [symfony-users] Symfony and OVH RPS 1

2010-08-23 Thread Jose R. Prieto
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Why not? It's a dedicated server :) You can make test in a netbook with a linux distribution, and without X.Org, and you can see if the RPS it's enough for you. The SAN disk it's more slow that a SATA/IDE/SCSI hard disk, but i think that for a lit

[symfony-users] Generate Document Classes for MongoDb

2010-08-23 Thread Michael
I'm trying to move from MySQL to MongoDb, and start creating a test class: container- >getDoctrine_Odm_Mongodb_DefaultDocumentManagerService(); $user = new User(); $user->setName('John Doe); $dm->persist($user); $dm->flush(); But I keep getting this error: "No identifier/primary key specified f

[symfony-users] How to load a Doctrine 2 Custom Mapping

2010-08-23 Thread Aaron DM
I am trying to create a custom mapping for a "binary" column field. Where/how do I load the custom mapping type for Doctrine 2 in a symfony 2 project? Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] missing field names in posted form --> Unexpected extra form field "0" ...

2010-08-23 Thread Lutz
Hi, I do have a problem in processing forms on my hosts server. I am using the sfDoctrineApply-Plugin and stumbled over the problem with the sfApplyForm and the execute apply action. These files are unmodified with respect to a fresh plugin installation. The processing of the posted form works fine

Re: [symfony-users] Addinf global configuration variables

2010-08-23 Thread Alexandre Salomé
(put code in your model) 2010/8/23 Alexandre Salomé > Hello, > > You should put labels in class code : > > class MyClass > { > const STATUS_OPENED = 0; > const STATUS_CLOSED = 1; > > protected $labels = array( > self::STATUS_OPENED => "Opened", > self::STATUS_CLOSED => "Closed" >

Re: [symfony-users] Addinf global configuration variables

2010-08-23 Thread Alexandre Salomé
Hello, You should put labels in class code : class MyClass { const STATUS_OPENED = 0; const STATUS_CLOSED = 1; protected $labels = array( self::STATUS_OPENED => "Opened", self::STATUS_CLOSED => "Closed" ); public function getLabel() { // ... } } 2010/8/23 torok84 >

[symfony-users] Symfony and OVH RPS 1

2010-08-23 Thread guiguiboy
Hi, I would like to know if a RPS 1 from OVH can handle correctly a website in symfony 1.4 ? The site is small : there are some articles with audio files playing, an e-commerce part, and a contact form. I do not expect many connections for this site. I saw that a user, saturn1, had problems with

Re: [symfony-users] setUpdatedAt not updating the date in doctrine behaivour

2010-08-23 Thread Alexandre Salomé
You are not calling the parent-node method when you execute parent::save($conn); Find the correct relation and use save on it : $parentNode = $this->getParent(); // depends of your schema $parentNode->touch(); // implement it $parentNode->save(); 2010/8/23 Alexis Sanchez > Hi > > I have this c

Re: [symfony-users] Re: Backend reacting to table case and denies access - cannot be replicated by colleagues

2010-08-23 Thread Alexandre Salomé
You have to fix your model generation problem. Have a look at Yaml files : "propel" is a connection name, not a MySQL table. 2010/8/23 El Duderino > I have completely deleted all project files from my laptop then done a > SVN checkout but the problem persists. The only files that are not > ver

[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin always inserts a new item

2010-08-23 Thread ju1ius
I'm sorry, but the problem is still here for me... Empty new records are inserted and i still have the "duplicate key" Error, even with the svn HEAD ... What i'm trying to do: store values for email templating, for example to add a series of gigs to an email: a gig is a RepeatingField wtih keyword

Re: [symfony-users] using same template in different applications

2010-08-23 Thread Gábor Fási
Put it in a plugin. On Mon, Aug 23, 2010 at 16:07, axel at wrote: > is it possible to use a template in several different applications of > the same project? > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this

[symfony-users] setUpdatedAt not updating the date in doctrine behaivour

2010-08-23 Thread Alexis Sanchez
Hi I have this code: abstract class PluginAdCar extends BaseAdCar { public function save(Doctrine_Connection $conn = null) { parent::save($conn); } } I just want to update the parent Ad when the child relation AdCar is modified. The problem is that the funciont $ad->setUp

[symfony-users] Re: Redirect on login

2010-08-23 Thread cosmy
You are right.. sorry but there are about 30 hours straigth in front of my mac and my brain is not connecting any longer.. :) On 23 Ago, 16:20, Daniel Lohse wrote: > I guess you're using sf(Doctrine)GuardPlugin? Look at the README, it's in > there. :) > > Cheers, Daniel > > On 23.08.2010, at 15:

[symfony-users] disable form value remembering?

2010-08-23 Thread axel at
symfony "rembembers" filter settings in admin generated forms, is there a way to disable that (globaly / or for certain modules)? -- 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

Re: [symfony-users] Redirect on login

2010-08-23 Thread Daniel Lohse
I guess you're using sf(Doctrine)GuardPlugin? Look at the README, it's in there. :) Cheers, Daniel On 23.08.2010, at 15:53, cosmy wrote: > Hi all. > I want that every time i do the login process the session to be > resetted, and the login process redirect to the home, and not the page > request

[symfony-users] using same template in different applications

2010-08-23 Thread axel at
is it possible to use a template in several different applications of the same project? -- 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 Groups "symfony users" group. T

[symfony-users] Using stylesheet helper in Symfony 2

2010-08-23 Thread Александр Голубь
Im trying to put Symfony 2 application to another folder and decided to use stylesheet and javascript helper. But I didn't find how to setup different location (baseUrl) of the application through the config. Also I didn't find this in documentation http://docs.symfony-reloaded.org/quick_tour/the_v

[symfony-users] Redirect on login

2010-08-23 Thread cosmy
Hi all. I want that every time i do the login process the session to be resetted, and the login process redirect to the home, and not the page requested. How ca i manage this? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You receiv

[symfony-users] Re: sfDependentSelectPlugin problem

2010-08-23 Thread wueb
Thanks, that solved the error. But now when i select a value from the first selectbox, the related select doesn't fill with the related fields. -- 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

[symfony-users] Re: Create auto increment index on save

2010-08-23 Thread Reo
I found a solution : It is not save() that we got to use, it's the postInsert($events) method. Like that you'll be able to retrieve the auto-incremented id. Hope it'll help. On 19 août, 14:12, Reo wrote: > Hi, > > I have a one-to-one relation in with sfGuardUser. As I want to have a > clean co

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

2010-08-23 Thread joost . farla
Beste, Donderdag 19 tot en met maandag 23 augustus ben ik niet aanwezig op kantoor. U kunt voor dringende zaken contact opnemen met mijn collega Dimitri van Hees: dimi...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontw

Re: [symfony-users] Re: Unhappy: sending mails with layout

2010-08-23 Thread Georg
Hello, I created a plugin with this functionality (http://www.symfony-project.org/plugins/ggEmailPlugin). I am using it in a live project, and it works well in my settings. If you have time please give it a try and report any issues you may find. Georg Am 19.08.2010 23:18, schrieb Antoine S.:

Re: [symfony-users] Re: How do I execute code on session expire with sfUser?

2010-08-23 Thread Gareth McCumskey
Just remember, you can very easily repopulate the data in session on every login. If there is no login authentication done, you can use filters to confirm if the required data exists and if not repopulate them as required. You don't need to know if session expires just if the data still exists and

[symfony-users] Re: Application Desktop

2010-08-23 Thread Thor
Ok now i understand, thank you On 20 Ago, 15:09, Gareth McCumskey wrote: > For example, bundle your web app with its own mini web server with php > support, sqlite and have an installer that installs all those, as well as > prism which you can create a menu entry for and make prism therefore conn

[symfony-users] Re: Backend reacting to table case and denies access - cannot be replicated by colleagues

2010-08-23 Thread El Duderino
I have completely deleted all project files from my laptop then done a SVN checkout but the problem persists. The only files that are not versioned are the Symfony files (1.4.6), no change after a clear cache either. When I did try to rebuild the schema, no problem, but the model build fails - Du

Re: [symfony-users] Application Desktop

2010-08-23 Thread Serkan Koyuncu
Hi, Couple of years ago I used one of sourceforge projects, but sorry I forgot its name :( S. 2010/8/23 Jochen Daum > Hi, > > On Mon, Aug 23, 2010 at 6:26 PM, Christopher Schnell > wrote: > > Hi, > > > > > > > > could you name some of those commercial solutions? > > > > I'm unsure if you want

Re: [symfony-users] Application Desktop

2010-08-23 Thread Jochen Daum
Hi, On Mon, Aug 23, 2010 at 6:26 PM, Christopher Schnell wrote: > Hi, > > > > could you name some of those commercial solutions? > I'm unsure if you want me to repeat my email or are you looking for other options? Kind Regards, Jochen > > > Regards, > > Christopher. > > > > Von: symfony-use

[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin : Unexpected extra form field named "Interests" error

2010-08-23 Thread Rudth-Mael Galite
Hello, Sorry for replying that late. I figured it out. Well, I actually disabled the plugin and follow another post : http://www.nacho-martin.com/dynamic-embedded-forms-in-symfony It's a little bit more complex to set up but it works like a charm. Thank you for your reply though. R. On Aug 19,

AW: [symfony-users] Application Desktop

2010-08-23 Thread Christopher Schnell
Hi, could you name some of those commercial solutions? Regards, Christopher. Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Im Auftrag von Benoit Montuelle Gesendet: Freitag, 20. August 2010 16:22 An: symfony-users@googlegroups.com Betreff: RE: [symfony-users] Appli

[symfony-users] Addinf global configuration variables

2010-08-23 Thread torok84
Hi, I have a model that has a numeric field that indicates a status it can be 1 Opened 2 Closed (It might change in the future). I want to output the status on the view, transalting numbers to strings. I will create an array a[1] = "Open"; a[2] = "Closed"; I will access the array a in the view to

Re: [symfony-users] symfony1.4 and choice dependent dropdown selects

2010-08-23 Thread Abhinav Keswani
Hi there On 23 August 2010 20:13, Daniel Kucharski wrote: > Check  sfDependentSelectPlugin > Brilliant. Thanks for the suggestion it works like a charm. Many thanks to Sergio Flores for contributing this. -Abhinav -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: Doctrine Query Cache and Symfony Pagers

2010-08-23 Thread Lea Haensenberger
No one having the same problem? Else I just have to turn off the caching for those queries, which is not so nice... On Aug 19, 5:05 pm, Lea Haensenberger wrote: > Hi all, > > I'm having trouble with thedoctrinequery cache in combination with > pagers. I have a query with some inner and left joins

[symfony-users] Re: What's the future of Lime2 ? (vs PHPUnit)

2010-08-23 Thread Adrien Mogenet
Thank you for that quick answer :-) Have a nice day ! -- Adrien Mogenet On 23 août, 10:37, Thomas Rabaix wrote: > On Mon, Aug 23, 2010 at 9:39 AM, Adrien Mogenet > wrote: > > > Hi all ! > > > I am designing a CI platform and I was wondering which choice should > > be the most efficient : PHPUn

Re: [symfony-users] What's the future of Lime2 ? (vs PHPUnit)

2010-08-23 Thread Thomas Rabaix
On Mon, Aug 23, 2010 at 9:39 AM, Adrien Mogenet wrote: > Hi all ! > > I am designing a CI platform and I was wondering which choice should > be the most efficient : PHPUnit or Lime2 > > To make this choice, I would like to know what wil be the future of > Lime 2 ? Any idea ? > No future as Symfony

RE: [symfony-users] symfony1.4 and choice dependent dropdown selects

2010-08-23 Thread Daniel Kucharski
Check sfDependentSelectPlugin -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Abhinav Keswani Sent: maandag 23 augustus 2010 8:42 To: symfony-users@googlegroups.com Subject: [symfony-users] symfony1.4 and choice dependent dropd

[symfony-users] What's the future of Lime2 ? (vs PHPUnit)

2010-08-23 Thread Adrien Mogenet
Hi all ! I am designing a CI platform and I was wondering which choice should be the most efficient : PHPUnit or Lime2 To make this choice, I would like to know what wil be the future of Lime 2 ? Any idea ? Will SensioLabs continue to develop Lime2 ? Will it be maintained ? Regards, -- Adrien

[symfony-users] Re: Translate lime tests into PHPUni

2010-08-23 Thread Adrien Mogenet
I finally launched my tests with Lime2 :-) On 16 août, 12:14, Adrien Mogenet wrote: > Hi everyone, > > I'm working on a old project, written with symfony 1.1. > I would like to write only PHPUnit tests, but not losing existing (and > numerous)limetests. > > Do you know an efficient way totranslat