Changeset 15304 for events/phpframework

Show
Ignore:
Timestamp:
07/06/08 23:22:37 (6 years ago)
Author:
kumatch
Message:

Added a new query - findByUserIdAndFollowIdForIsProtected method.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • events/phpframework/piece_framework/trunk/config/orm/mappers/Followers.yaml

    r14768 r15304  
    1010      user_id = $userId 
    1111      AND follow_id = $followId 
     12 
     13- name: findByUserIdAndFollowIdForIsProtected 
     14  query: > 
     15    SELECT 
     16      * 
     17    FROM 
     18      followers 
     19    WHERE 
     20      (user_id = $userId AND follow_id = $followId) 
     21      OR (user_id = $followId AND follow_id = $userId)