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
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!!!
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
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
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
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
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:
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:
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
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
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
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(
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
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
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
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
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:
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
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
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
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
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
Hello, i need ur help, i am a begginer.
I used scaffolding. I have this code ...
-
ACTIONS.CLASS.PHP
class proyectoActions extend
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
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:
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
26 matches
Mail list logo