@@ -56,8 +56,8 @@ discard block |
||
56 | 56 | |
57 | 57 | foreach ($document->getAttachments() as $attachment) { /* @var \Applications\Entity\Attachment $attachment */ |
58 | 58 | $attachment->getPermissions() |
59 | - ->clear() |
|
60 | - ->inherit($permissions); |
|
59 | + ->clear() |
|
60 | + ->inherit($permissions); |
|
61 | 61 | if ($isUpdate) { |
62 | 62 | $uow->computeChangeSet( |
63 | 63 | $dm->getClassMetadata(get_class($attachment)), |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | |
69 | 69 | if ($image = $document->getContact()->getImage()) { |
70 | 70 | $image->getPermissions() |
71 | - ->clear() |
|
72 | - ->inherit($permissions); |
|
71 | + ->clear() |
|
72 | + ->inherit($permissions); |
|
73 | 73 | if ($isUpdate) { |
74 | 74 | $uow->computeChangeSet( |
75 | 75 | $dm->getClassMetadata(get_class($image)), |
@@ -102,9 +102,9 @@ discard block |
||
102 | 102 | { |
103 | 103 | $qb = $this->getPaginationQueryBuilder($params); |
104 | 104 | $cursor = $qb->hydrate(false) |
105 | - ->select('_id') |
|
106 | - ->getQuery() |
|
107 | - ->execute(); |
|
105 | + ->select('_id') |
|
106 | + ->getQuery() |
|
107 | + ->execute(); |
|
108 | 108 | |
109 | 109 | $list = new PaginationList(array_keys(ArrayUtils::iteratorToArray($cursor))); |
110 | 110 | return $list; |
@@ -133,8 +133,8 @@ discard block |
||
133 | 133 | { |
134 | 134 | $auth=$this->getService('AuthenticationService'); |
135 | 135 | $qb=$this->createQueryBuilder() |
136 | - ->field("readBy")->notIn(array($auth->getUser()->getId())) |
|
137 | - ->field("job")->equals(new \MongoId($job->getId())); |
|
136 | + ->field("readBy")->notIn(array($auth->getUser()->getId())) |
|
137 | + ->field("job")->equals(new \MongoId($job->getId())); |
|
138 | 138 | return $qb->getQuery()->execute(); |
139 | 139 | } |
140 | 140 |
@@ -241,7 +241,6 @@ discard block |
||
241 | 241 | * Gets all comments for the application. |
242 | 242 | * |
243 | 243 | * @return ArrayCollection; |
244 | - |
|
245 | 244 | */ |
246 | 245 | public function getComments(); |
247 | 246 | |
@@ -272,7 +271,6 @@ discard block |
||
272 | 271 | * Gets all attributes for an application. |
273 | 272 | * |
274 | 273 | * @return ArrayCollection; |
275 | - |
|
276 | 274 | */ |
277 | 275 | public function getAttributes(); |
278 | 276 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | $application->getComments()->add($comment); |
106 | 106 | $application->changeStatus($application->getStatus(), sprintf( |
107 | 107 | /* @translate */ 'Application was rated by %s', |
108 | - $this->auth()->getUser()->getInfo()->getDisplayName()) |
|
108 | + $this->auth()->getUser()->getInfo()->getDisplayName()) |
|
109 | 109 | ); |
110 | 110 | } |
111 | 111 | $viewModel->setVariable('isSaved', true); |
@@ -44,8 +44,8 @@ |
||
44 | 44 | $fileId = new \MongoId($file->getId()); |
45 | 45 | $dm = $eventArgs->getDocumentManager(); |
46 | 46 | $dm->createQueryBuilder('Cv\Entity\Cv') |
47 | - ->update()->multiple(true) |
|
48 | - ->field('attachments')->equals($fileId)->pull($fileId) |
|
49 | - ->getQuery()->execute(); |
|
47 | + ->update()->multiple(true) |
|
48 | + ->field('attachments')->equals($fileId)->pull($fileId) |
|
49 | + ->getQuery()->execute(); |
|
50 | 50 | } |
51 | 51 | } |