Hi Daniel... Thank you so much!!
The problem was that I unset the id field in the form. I did not know that
it was supposed to be included in the form because it was present in the
URI. I hope this also helps someone else whom faces this problem...
Thanks again...
Regards
CAP
On Mon, Sep 13, 20
You might have forgotten to output $form->renderHiddenFields(false); in your
template? Please check that the ID of your object is there in your edit
screen's HTML.
Cheers, Daniel
Sent from my iPhone4
On Sep 13, 2010, at 1:58 PM, corneliusparkin wrote:
> Hi
>
> I have been struggling with th
Hi
I have been struggling with this functionality for more than a week
now and really hope someone can help me.
In the doctrine/schema.yml file, I specify a column "code" to be
unique. i.e.
code:
type: string(10)
fixed: false
unsigned: false
primary: false
default: '
Aren't you talking about two different Forms? It seems that first
post-validator comes from (Base)SubscriberForm, but you complaint about
NewsletterForm.
Is there inheritance relationship beetween them?
Cheers
On Sat, Apr 10, 2010 at 5:05 PM, godbout wrote:
> Hi there!
>
> I have a very simple t
Hi there!
I have a very simple thing to do: allowing visitors to register their
email for a newsletter.
The email field is defined as unique in the db, and Doctrine created
me the BaseForm with the following code:...
[code]$this->validatorSchema->setPostValidator(
new sfValidatorDoctrineUni
Hello everyone,
I am using sfValidatorDoctrineUnique to validate unique username and
i am going to implement to edit the "username". so at the time when
form comes to edit the user and if i will not change the username then
also it gives me the error for uniquenes.. if any one know how to skip
a
Hello everyone,
I am using sfValidatorDoctrineUnique to validate unique username and
i am going to implement to edit the "username". so at the time when
form comes to edit the user and if i will not change the username then
also it gives me the error for uniquenes.. if any one know how to skip
a
Hi all,
I'm getting in trouble using sfvalidatordoctrineunique (Symfony 1.2.8,
Doctrine, Ubuntu).
This method validates the uniqueness of a column.
According to API (http://www.symfony-project.org/api/1_2/
sfValidatorDoctrineUnique), we should be able to add several fields in
options (columns in
Hi
It seems to me that the $values table is never filled with the primary
key in the "isUpdate" function of the sfValidatorDoctrineUnique (sf
1.2.1), resulting in an always false return and a major problem with
this validator.
What do you think of that ?
--~--~-~--~~~---