[symfony-users] [Validation] Custom validator symfony2

2011-06-03 Thread cosmin
Is there a way to access two properties from the same entity that isValidated like password and passconf without using CLASS_CONSTRAINT?? my second problem is that i can`t set a new configuration so i can use entityManager services: validator.unique: class: MyNsp\UserBundle\Valida

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-19 Thread JF Simon
Hi guys, Totaly agree with Dennis ... this "over-validation" appeared to me like an error at the first time (that's why I'm here). In my case, the "over-validated" object has a "@assert:Validate" on a foreign key ... as my foreign key is not automatuically hydrated, I get a systematic error!!!

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-18 Thread Dennis Jacobfeuerborn
Hi, I'd strongly favor not doing such a "recursive" validation by default. When I create a form 99% of the time I only want to validate the data submitted in fact I can't even think of a case where I'd want to do a deeper validation right now. Checking the city when you only submit a user seems

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-17 Thread Bernhard Schussek
2011/4/17 Dennis Jacobfeuerborn : > I think the reference should be validated but not necessarily the whole > entity the reference points to. The reference would be validated anyway because the reference is a property of the main object. Bernhard -- If you want to report a vulnerability issue o

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-17 Thread Dennis Jacobfeuerborn
Hi, I think the reference should be validated but not necessarily the whole entity the reference points to. Regards, Dennis On Sunday, April 17, 2011 10:36:43 AM UTC+2, Bernhard Schussek wrote: > > Hi Matt, > > The problem is that by default the data of each field is validated. For the > enti

Re: [symfony-users] Validation propagating to related entities in Symfony2

2011-04-17 Thread Bernhard Schussek
Hi Matt, The problem is that by default the data of each field is validated. For the entity field this is the selected entity. Does it make sense to generally disable validation for entity fields? Bernhard Am 16.04.2011 21:38 schrieb "Matt Johnston" : I have two entities that are joined by a Ma

[symfony-users] Validation propagating to related entities in Symfony2

2011-04-16 Thread Matt Johnston
I have two entities that are joined by a ManyToOne relation. Each entity has it's own set of validators. When I submit a form for the one object, the related object is also being validated. Is there any way that the related object can not be validated? Here is an example, I am using Symfony2 PR11:

[symfony-users] Validation propagating to related entities in Symfony2

2011-04-16 Thread m...@mjohnston.com
I have two entities that are joined by a ManyToOne relation. Each entity has it's own set of validators. When I submit a form for the parent object, the child object is also being validated. Is there any way that the child object can not be validated? Here is an example, I am using Symfony2 PR11:

Re: [symfony-users] Validation in Symfony

2011-03-30 Thread Bernhard Schussek
Hi Illya, 2011/3/30 Illya Klymov : > Another problem is binding some validation checks to corresponding form > fields. As far as i understand, getPropertyPath is used to retrieve data > from ConstraintViolations and to "bind" error to corresponding form field. I > have a method isClosureDateAfterL

[symfony-users] Validation in Symfony

2011-03-30 Thread Illya Klymov
Hi! I have a question on how to build an effective validation system in Symfony2+Doctrine. I want to make sure that my entity will never be stored in DB in incorrect state. Also, I want to use symfony validation to display validation errors in forms in correct way. So I've implented service, wh

[symfony-users] Validation of Embedded forms

2011-03-11 Thread Roman Gnatyuk
Hi. Symfony 1.4 How to do that with the successful validation of one of embedded forms main form pass validation? -- 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 Gro

[symfony-users] Validation don´t work

2010-02-13 Thread Rodrigo Prado
Good afternoon! I have a problem with validation in symfony. archive: C:\xampplite\htdocs\portalcepai\lib\form\LoginForm.class setWidgets(array( 'username' => new sfWidgetFormInput(), 'password' => new sfWidgetFormInputPassword() )); $this->widgetSchema->setLabels(array(

[symfony-users] Validation errors with embedded form (sfGuardUser with sfGuardUserProfile)

2009-02-17 Thread donut
I'm embedding the sfGuardUserProfile form in the sfGuardUser form but whenever I submit I get validation errors. Here's the exact error: --- 500 | Internal Server Error | Doctrine_Validator_Exception Validation failed in class sfGuardUserProfile 8 fields had validation errors: * 1 validator fai

[symfony-users] Validation of PNG images sf 1.2

2009-01-07 Thread m-naw
Hello, i have a problem with sfFileValidator in symfony 1.2. I did a standard file upload. It works perfectly on localhost. Mime_types are PNG, X- PNG, JPEG, GIF. I can upload PNG image on localhost but on application loaded on host I cant, its return mime_types error message. There is no problem

[symfony-users] Validation with Symfony 1.2

2008-11-20 Thread Sebastian
Hi @all. I want to use the whole functionality of version 1.2 and do it without compatibility mode to 1.0 (compat_10 = on). Simple question: Where can I find the latest revision of the documentation, especially for validations? This section is marked as "deprecated" in the official documentation

[symfony-users] Validation of Requests in 1.1

2008-07-12 Thread Daniel Stevens
I've been working with symfony 1.1 for a while now, and while I realize that validation has been moved from sfRequest, a large part of my application is a REST service of sorts, in which I need to validate POST variables that are not associated with forms. At first glance the new validation see

[symfony-users] Validation problems

2008-05-19 Thread Reynier Perez Mira
Hi, I'm trying to valídate the data inserted in a form. For that reason I created a file called AdicionarLicencias.yml inside the /validate folder in my module. This is the content of the file: /valídate/AdicionarLicencias.yml fillin: enabled: true fields: nombre: required: msg:

[symfony-users] Validation Problem

2008-04-23 Thread CX
hello again, I've this exception caused by a validator: "specifies file or parameter "phone", but it is missing the "required" attribute" and on my edit.yml i got this: methods: post: [name, phone] names: name: required: Yes required_msg: Ingrese nombre del contacto

[symfony-users] Validation converters when no error ocurrs

2008-04-17 Thread Joel Cuevas
Hi group! I've noticed that the converters defined in the validation.yml file within the fillin definitions are only applied when the validation fails and not when the form validates correctly. When the request succeeds whitout errors, I have to rewrite the functions of the converters in the act

[symfony-users] validation with symfony + doctrine

2008-01-28 Thread Donald Ball
Hi folks, I'm in the middle of learning symfony so I apologize if this is a FAQ, but I was unable to find an answer so far. I've been unable to get validation working on my sample app, a del.icio.us clone, written against symfony-1.0.11 with the 1.0 branch of the sfDoctrinePlugin. I've got two mo

[symfony-users] validation of dynamically generated forms

2007-12-30 Thread yome
Hello, I am dynamically generating my forms (let's say for example 1 to n select_tags depending on other data; let's say they are named fooX where X is a number) and I would like to perform some validation on the generated form elements. Obviously, as I don't know at devel time how many select ta

[symfony-users] validation files for different situations

2007-10-28 Thread Thierry
What if depending on some parameters you serve a different form, which submits to the same update actions. So someone which is logged in might have to fill in one field and someone which is not logged in 4. However if you are not logged in you really need to fill in all 4. How to accomplish thi

[symfony-users] Validation

2007-10-02 Thread Carlos CQ
Hello, i need ur help, i am a begginer. I used scaffolding. I have this code ... - ACTIONS.CLASS.PHP class proyectoActions extend

[symfony-users] validation of file upload doesn't work with photo[n] syntax

2007-09-26 Thread Matthias Nothhaft
Hi, does somebody have a fix for that? I tried photo{n} in validation yml files but my files can not be validated. It also seems that checkboxes can not be validated with that syntax!? Any ideas? Regards, Matthias --~--~-~--~~~---~--~~ You received this messa

[symfony-users] Validation problem

2007-03-21 Thread Chris
Hi, I've got this validation in may yaml file : fillin: enabled: true param: name:descEnchere01Form converters: utf8_encode:[titreAnn] strip_tags:[titreAnn] methods: post:

[symfony-users] validation problem

2007-03-18 Thread Matthias Nothhaft
Hi, I have an image upload form where I can upload an arbitrary number of files. But I can only upload one file per submit. I use this form also for edit (update image description and usage). Now I need one single validation config for the following checks: - file field can be empty in "edit mo