public function save()
    {
        if (!$this->validate())
            return false;

        $meta = new UserMetadata;
        $meta->attributes = array(
            'user_id' => $this->_user->id,
            'key' => $this->provider.'Provider',
            'value' => $this->adapter->identifier
        );

        // Save the associative object
        return $meta->save();
    }
public function save()
    {
        if (!$this->validate())
            return false;

        $meta = new UserMetadata;
        $meta->attributes = array(
            'user_id' => $this->_user->id,
            'key' => $this->provider.'Provider',
            'value' => $this->adapter->identifier
        );

        // Save the associative object
        return $meta->save();
    }
public function save ( ) { if ( ! $ this -> validate ( ) ) return false ; $ meta = new UserMetadata ; $ meta -> attributes = array ( 'user_id' => $ this -> _user -> id , 'key' => $ this -> provider . 'Provider' , 'value' => $ this -> adapter -> identifier ) ; // Save the associative object return $ meta -> save ( ) ; }
Bind's the user identity to the mdoel
@return boolean
Bind s the user identity to the mdoel