Development

Changeset 23495

You must first sign up to be able to contribute.

Changeset 23495

Show
Ignore:
Timestamp:
11/01/09 17:40:25 (4 years ago)
Author:
gimler
Message:

[sfDoctrineGuardExtraPlugin][1.3]: fix #7462; add schema.yml for email_address field ;)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfDoctrineGuardExtraPlugin/branches/1.3/README

    r16024 r23495  
    22modules for sfDoctrineGuardPlugin. 
    33 
    4 It gives you the modules ForgotPassword and Register. 
     4It gives you the modules ForgotPassword and Register. The Plugin add a `email_address` column to your `sfGuardUser` model. 
    55 
    66# Installation 
     
    4040        static public function retrieveByUsernameOrEmailAddress($usernameOrEmail, $isActive = true ) 
    4141        { 
    42           return Doctrine_Query::create()->from('sfGuardUser u')->where( '(u.username = ? OR u.email = ?) AND u.is_active = ?', array( $usernameOrEmail, $usernameOrEmail, $isActive ) )->execute()->getFirst(); 
    43         } 
    44  
    45   * Add getter and setter for `email_address` in lib/model/doctrine/sfDoctrineGuardPlugin/sfGuardUser.class e.q. 
    46  
    47         [PHP] 
    48         public function getEmailAddress() 
    49         { 
    50           return $this->email; 
    51         } 
    52         public function setEmailAddress($email) 
    53         { 
    54           $this->email = $email; 
     42          return Doctrine_Query::create()->from('sfGuardUser u')->where( '(u.username = ? OR u.email_address = ?) AND u.is_active = ?', array( $usernameOrEmail, $usernameOrEmail, $isActive ) )->execute()->getFirst(); 
    5543        } 
    5644