Skip to content
Snippets Groups Projects
Commit 37e8a271 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASk] Working on validation of the application form

parent 95d7695a
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@ class JobApplication extends AbstractEntity {
/**
* @var string $zip
* @validate NotEmpty
*/
protected $zip = '';
......@@ -97,6 +98,7 @@ class JobApplication extends AbstractEntity {
/**
* @var int $birthDate
* @validate NotEmpty
*/
protected $birthDate = '';
......@@ -119,16 +121,19 @@ class JobApplication extends AbstractEntity {
/**
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $coverLetter
* @validate NotEmpty
*/
protected $coverLetter;
/**
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $cv
* @validate NotEmpty
*/
protected $cv;
/**
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $certificates
* @validate NotEmpty
*/
protected $certificates;
......@@ -293,7 +298,7 @@ class JobApplication extends AbstractEntity {
/**
* @param int $birthDate
*/
public function setBirthDate(string $birthDate) {
public function setBirthDate($birthDate) {
$this->birthDate = (int) $birthDate;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment