예제 #1
0
파일: User.php 프로젝트: IVsevolod/zouk
 /**
  * @param $entity
  * @param $entityIds
  *
  * @return Vote[]
  */
 public function getVotesByEntity($entity, $entityIds)
 {
     return Vote::findAll(['user_id' => $this->id, 'entity' => $entity, 'entity_id' => $entityIds]);
 }