common/models/base/Follower.php
public static function findByFollower( $modelId, $parentId, $type = self::TYPE_FOLLOW ) {

		return self::find()->where( 'modelId=:mid AND parentId=:pid AND type =:type', [ ':mid' => $modelId, ':pid' => $parentId, ':type' => $type ] )->one();
	}
public static function findByFollower( $modelId, $parentId, $type = self::TYPE_FOLLOW ) {

		return self::find()->where( 'modelId=:mid AND parentId=:pid AND type =:type', [ ':mid' => $modelId, ':pid' => $parentId, ':type' => $type ] )->one();
	}
public static function findByFollower ( $ modelId , $ parentId , $ type = self :: TYPE_FOLLOW ) { return self :: find ( ) -> where ( 'modelId=:mid AND parentId=:pid AND type =:type' , [ ':mid' => $ modelId , ':pid' => $ parentId , ':type' => $ type ] ) -> one ( ) ; }
Find and return the follower using given follower id, parent id and type.

@param integer $modelId
@param integer $followerId
@param integer $type
@return Follower
Find and return the follower using given follower id parent id and type .