module/Organizations/src/Organizations/Repository/Organization.php 1 location
|
@@ 183-192 (lines=10) @@
|
| 180 |
|
return $collection; |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
public function getEmployersCursor(UserInterface $user) |
| 184 |
|
{ |
| 185 |
|
$qb = $this->createQueryBuilder(); |
| 186 |
|
$qb->field('refs.employees')->equals($user->getId()); |
| 187 |
|
|
| 188 |
|
$q = $qb->getQuery(); |
| 189 |
|
$c = $q->execute(); |
| 190 |
|
|
| 191 |
|
return $c; |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
public function create(array $data = null) |
| 195 |
|
{ |
module/Jobs/src/Jobs/Repository/Job.php 1 location
|
@@ 44-55 (lines=12) @@
|
| 41 |
|
* @return bool |
| 42 |
|
* @throws \Doctrine\ODM\MongoDB\MongoDBException |
| 43 |
|
*/ |
| 44 |
|
public function existsApplyId($applyId) |
| 45 |
|
{ |
| 46 |
|
$qb = $this->createQueryBuilder(); |
| 47 |
|
$qb->hydrate(false) |
| 48 |
|
->select('applyId') |
| 49 |
|
->field('applyId')->equals($applyId); |
| 50 |
|
|
| 51 |
|
$result = $qb->getQuery()->execute(); |
| 52 |
|
$count = $result->count(); |
| 53 |
|
return (bool) $count; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
/** |
| 57 |
|
* @param $resourceId |
| 58 |
|
* @return array |