public function getFollowsByElementId($elementId) { // find follows $conditions = 'elementId=:elementId'; $params = array(':elementId' => $elementId); $records = FollowRecord::model()->findAll($conditions, $params); return FollowModel::populateModels($records); }