PHP Класс Newscoop\Entity\Repository\UserTopicRepository

Наследование: extends Doctrine\ORM\EntityRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
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