PHP 클래스 Newscoop\Entity\Repository\UserTopicRepository

상속: extends Doctrine\ORM\EntityRepository
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 메소드들

메소드 설명
findByTopicAndUser ( User $user, Topic $topic ) : Newscoop\Entity\UserTopic Find results for user and topic
findByUser ( User $user, string $locale = null ) : array Find topics for user
getTheOccurrenceOfTheUserTopic ( string | integer $topicId ) : Doctrine\ORM\Query Gets the occurence of the user's topic

메소드 상세

findByTopicAndUser() 공개 메소드

Find results for user and topic
public findByTopicAndUser ( User $user, Topic $topic ) : Newscoop\Entity\UserTopic
$user Newscoop\Entity\User
$topic Newscoop\NewscoopBundle\Entity\Topic
리턴 Newscoop\Entity\UserTopic

findByUser() 공개 메소드

Find topics for user
public findByUser ( User $user, string $locale = null ) : array
$user Newscoop\Entity\User User object or user id
$locale string Topic locale
리턴 array

getTheOccurrenceOfTheUserTopic() 공개 메소드

Gets the occurence of the user's topic
public getTheOccurrenceOfTheUserTopic ( string | integer $topicId ) : Doctrine\ORM\Query
$topicId string | integer Topic id
리턴 Doctrine\ORM\Query