@@ -128,7 +128,7 @@ |
||
128 | 128 | ); |
129 | 129 | |
130 | 130 | $this->setName('preferredJob') |
131 | - ->setHydrator(new EntityHydrator()) |
|
132 | - ->setObject(new PreferredJob()); |
|
131 | + ->setHydrator(new EntityHydrator()) |
|
132 | + ->setObject(new PreferredJob()); |
|
133 | 133 | } |
134 | 134 | } |
@@ -24,8 +24,8 @@ |
||
24 | 24 | public function init() |
25 | 25 | { |
26 | 26 | $this->setName('employment') |
27 | - ->setHydrator(new EntityHydrator()) |
|
28 | - ->setObject(new EmploymentEntity()); |
|
27 | + ->setHydrator(new EntityHydrator()) |
|
28 | + ->setObject(new EmploymentEntity()); |
|
29 | 29 | |
30 | 30 | $this->add( |
31 | 31 | array( |
@@ -74,14 +74,14 @@ |
||
74 | 74 | $count = $options->getAttachmentsCount(); |
75 | 75 | |
76 | 76 | $form->setIsDisableCapable(false) |
77 | - ->setIsDisableElementsCapable(false) |
|
78 | - ->setIsDescriptionsEnabled(true) |
|
79 | - ->setDescription( |
|
77 | + ->setIsDisableElementsCapable(false) |
|
78 | + ->setIsDescriptionsEnabled(true) |
|
79 | + ->setDescription( |
|
80 | 80 | /*@translate*/ 'Attach images or PDF Documents to your CV. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
81 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
82 | - ) |
|
83 | - ->setParam('return', 'file-uri') |
|
84 | - ->setLabel(/*@translate*/ 'Attachments'); |
|
81 | + [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024), 1)] |
|
82 | + ) |
|
83 | + ->setParam('return', 'file-uri') |
|
84 | + ->setLabel(/*@translate*/ 'Attachments'); |
|
85 | 85 | |
86 | 86 | /* @var $file \Core\Form\Element\FileUpload */ |
87 | 87 | $file = $form->get($this->fileName); |
@@ -10,10 +10,10 @@ |
||
10 | 10 | use Core\Entity\IdentifiableEntityInterface; |
11 | 11 | |
12 | 12 | interface CvInterface extends EntityInterface, |
13 | - IdentifiableEntityInterface, |
|
14 | - DraftableEntityInterface, |
|
15 | - PermissionsAwareInterface, |
|
16 | - ModificationDateAwareEntityInterface |
|
13 | + IdentifiableEntityInterface, |
|
14 | + DraftableEntityInterface, |
|
15 | + PermissionsAwareInterface, |
|
16 | + ModificationDateAwareEntityInterface |
|
17 | 17 | { |
18 | 18 | |
19 | 19 | /** |
@@ -60,11 +60,11 @@ |
||
60 | 60 | protected $skills; |
61 | 61 | |
62 | 62 | /** |
63 | - * Skills |
|
64 | - * |
|
65 | - * @var ArrayCollection |
|
66 | - * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
67 | - */ |
|
63 | + * Skills |
|
64 | + * |
|
65 | + * @var ArrayCollection |
|
66 | + * @ODM\EmbedMany(targetDocument="\Cv\Entity\Language") |
|
67 | + */ |
|
68 | 68 | protected $languageSkills; |
69 | 69 | |
70 | 70 | /** |
@@ -18,20 +18,20 @@ discard block |
||
18 | 18 | |
19 | 19 | return [ |
20 | 20 | 'doctrine' => [ |
21 | - 'driver' => [ |
|
21 | + 'driver' => [ |
|
22 | 22 | 'odm_default' => [ |
23 | 23 | 'drivers' => [ |
24 | 24 | 'Applications\Entity' => 'annotation', |
25 | 25 | ], |
26 | 26 | ], |
27 | 27 | 'annotation' => [ |
28 | - /* |
|
28 | + /* |
|
29 | 29 | * All drivers (except DriverChain) require paths to work on. You |
30 | 30 | * may set this value as a string (for a single path) or an array |
31 | 31 | * for multiple paths. |
32 | 32 | * example https://github.com/doctrine/DoctrineORMModule |
33 | 33 | */ |
34 | - 'paths' => [ __DIR__ . '/../src/Entity'] |
|
34 | + 'paths' => [ __DIR__ . '/../src/Entity'] |
|
35 | 35 | ], |
36 | 36 | ], |
37 | 37 | 'eventmanager' => [ |
@@ -71,18 +71,18 @@ discard block |
||
71 | 71 | 'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions', |
72 | 72 | ], |
73 | 73 | 'factories' => [ |
74 | - 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
75 | - 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
76 | - 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
77 | - 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
78 | - 'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory', |
|
79 | - 'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory', |
|
80 | - 'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory', |
|
74 | + 'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory', |
|
75 | + 'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory', |
|
76 | + 'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory', |
|
77 | + 'EducationMapper' => 'Applications\Repository\Service\EducationMapperFactory', |
|
78 | + 'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory', |
|
79 | + 'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory', |
|
80 | + 'Applications\Auth\Dependency\ListListener' => 'Applications\Factory\Auth\Dependency\ListListenerFactory', |
|
81 | 81 | Listener\JobSelectValues::class => Factory\Listener\JobSelectValuesFactory::class, |
82 | 82 | Listener\LoadDependendEntities::class => InvokableFactory::class, |
83 | 83 | ], |
84 | 84 | 'aliases' => [ |
85 | - 'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre' |
|
85 | + 'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre' |
|
86 | 86 | ] |
87 | 87 | ], |
88 | 88 | |
@@ -185,20 +185,20 @@ discard block |
||
185 | 185 | ], |
186 | 186 | 'form_elements' => [ |
187 | 187 | 'invokables' => [ |
188 | - 'Applications/Mail' => 'Applications\Form\Mail', |
|
189 | - 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
190 | - 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
191 | - 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
192 | - 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
193 | - 'Applications/Apply' => 'Applications\Form\Apply', |
|
194 | - 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
195 | - 'Applications/Base' => 'Applications\Form\Base', |
|
196 | - 'Applications/Facts' => 'Applications\Form\Facts', |
|
197 | - 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
198 | - 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
199 | - 'href' => 'Applications\Form\Element\Ref', |
|
188 | + 'Applications/Mail' => 'Applications\Form\Mail', |
|
189 | + 'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset', |
|
190 | + 'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset', |
|
191 | + 'Applications/CommentForm' => 'Applications\Form\CommentForm', |
|
192 | + 'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset', |
|
193 | + 'Applications/Apply' => 'Applications\Form\Apply', |
|
194 | + 'Applications/Contact' => 'Applications\Form\ContactContainer', |
|
195 | + 'Applications/Base' => 'Applications\Form\Base', |
|
196 | + 'Applications/Facts' => 'Applications\Form\Facts', |
|
197 | + 'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset', |
|
198 | + 'Applications/Attributes' => 'Applications\Form\Attributes', |
|
199 | + 'href' => 'Applications\Form\Element\Ref', |
|
200 | 200 | |
201 | - ], |
|
201 | + ], |
|
202 | 202 | 'factories' => [ |
203 | 203 | 'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory', |
204 | 204 | 'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory', |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | 'Applications\Form\Element\StatusSelect' => Factory\Form\StatusSelectFactory::class, |
207 | 207 | Form\Element\JobSelect::class => Factory\Form\JobSelectFactory::class |
208 | 208 | ], |
209 | - ], |
|
209 | + ], |
|
210 | 210 | |
211 | 211 | 'form_elements_config' => [ |
212 | 212 | 'Applications/Apply' => [ |
@@ -79,7 +79,7 @@ |
||
79 | 79 | |
80 | 80 | protected $workflow = [ |
81 | 81 | |
82 | - 'recruiter', |
|
82 | + 'recruiter', |
|
83 | 83 | ]; |
84 | 84 | |
85 | 85 | /** |
@@ -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 |
@@ -51,14 +51,14 @@ |
||
51 | 51 | $fileId = new \MongoId($file->id); |
52 | 52 | |
53 | 53 | $dm->createQueryBuilder('Applications\Entity\Application') |
54 | - ->update()->multiple(true) |
|
55 | - ->field('attachments')->equals($fileId)->pull($fileId) |
|
56 | - ->getQuery()->execute(); |
|
54 | + ->update()->multiple(true) |
|
55 | + ->field('attachments')->equals($fileId)->pull($fileId) |
|
56 | + ->getQuery()->execute(); |
|
57 | 57 | |
58 | 58 | |
59 | 59 | $dm->createQueryBuilder('Applications\Entity\Application') |
60 | - ->update()->multiple(true) |
|
61 | - ->field('contact.image')->equals($fileId)->set(null) |
|
62 | - ->getQuery()->execute(); |
|
60 | + ->update()->multiple(true) |
|
61 | + ->field('contact.image')->equals($fileId)->set(null) |
|
62 | + ->getQuery()->execute(); |
|
63 | 63 | } |
64 | 64 | } |