Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion #1652: New constant 'Doctrine::VALIDATE_USER'
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Doctrine  
View profile   Translate to Translated (View Original)
 More options 7 Nov 2008, 22:06
From: "Doctrine" <no-re...@phpdoctrine.org>
Date: Fri, 07 Nov 2008 22:06:20 -0000
Local: Fri 7 Nov 2008 22:06
Subject: Re: [Doctrine] #1652: New constant 'Doctrine::VALIDATE_USER'
#1652: New constant 'Doctrine::VALIDATE_USER'
--------------------------+------------------------------------------------ -
  Reporter:  floriank     |       Owner:  jwage                
      Type:  enhancement  |      Status:  new                  
  Priority:  minor        |   Milestone:  1.1.0                
 Component:  Attributes   |     Version:  1.1-DEV              
Resolution:               |    Keywords:  validation          
  Has_test:  1            |    Mystatus:  Pending Core Response
 Has_patch:  1            |  
--------------------------+------------------------------------------------ -
Comment (by floriank):

 Replying to [comment:1 romanb]:
 > I dont remember the constant names right now.
 It is
 {{{
 Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_VALIDATE,
 Doctrine::VALIDATE_ALL &
 ~Doctrine::VALIDATE_LENGTHS &
 ~Doctrine::VALIDATE_CONSTRAINTS &
 ~Doctrine::VALIDATE_TYPES);

 }}}

 I want to disable all validation except the validate()-method of the
 Records, which is not possible because the code above is the same as

 {{{
 Doctrine_Manager::getInstance()->setAttribute(Doctrine::ATTR_VALIDATE,
 Doctrine::VALIDATE_NONE);
 }}}

 what results in a static return of true in Record->isValid().

--
Ticket URL: <http://trac.doctrine-project.org/ticket/1652#comment:2>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google