PHP Class Newscoop\Entity\Repository\UserTopicRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Exibir arquivo Open project: sourcefabric/newscoop

Public Methods

Method Description
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

Method Details

findByTopicAndUser() public method

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

findByUser() public method

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
return array

getTheOccurrenceOfTheUserTopic() public method

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