Skip to content
Snippets Groups Projects
Commit 2fd7a5cf authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Replace @validate with proper annotation namespace

parent dde755a2
No related branches found
No related tags found
1 merge request!23Feature upgrade to typo3 10
...@@ -46,7 +46,7 @@ class JobApplication extends AbstractEntity { ...@@ -46,7 +46,7 @@ class JobApplication extends AbstractEntity {
/** /**
* @var \SGalinski\SgJobs\Domain\Model\Company $company * @var \SGalinski\SgJobs\Domain\Model\Company $company
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $company; protected $company;
...@@ -57,67 +57,67 @@ class JobApplication extends AbstractEntity { ...@@ -57,67 +57,67 @@ class JobApplication extends AbstractEntity {
/** /**
* @var string $gender * @var string $gender
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $gender = 0; protected $gender = 0;
/** /**
* @var string $firstName * @var string $firstName
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $firstName = ''; protected $firstName = '';
/** /**
* @var string $lastName * @var string $lastName
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $lastName = ''; protected $lastName = '';
/** /**
* @var string $street * @var string $street
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $street = ''; protected $street = '';
/** /**
* @var string $city * @var string $city
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $city = ''; protected $city = '';
/** /**
* @var string $zip * @var string $zip
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $zip = ''; protected $zip = '';
/** /**
* @var string $country * @var string $country
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $country = ''; protected $country = '';
/** /**
* @var string $nationality * @var string $nationality
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $nationality = ''; protected $nationality = '';
/** /**
* @var string $education * @var string $education
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $education = ''; protected $education = '';
/** /**
* @var string $birthDate * @var string $birthDate
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $birthDate = ''; protected $birthDate = '';
/** /**
* @var string $phone * @var string $phone
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $phone = ''; protected $phone = '';
...@@ -128,25 +128,26 @@ class JobApplication extends AbstractEntity { ...@@ -128,25 +128,26 @@ class JobApplication extends AbstractEntity {
/** /**
* @var string $email * @var string $email
* @validate NotEmpty, EmailAddress * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
* @TYPO3\CMS\Extbase\Annotation\Validate("EmailAddress")
*/ */
protected $email = ''; protected $email = '';
/** /**
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference $coverLetter * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference $coverLetter
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $coverLetter; protected $coverLetter;
/** /**
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference $cv * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference $cv
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $cv; protected $cv;
/** /**
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference $certificate * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference $certificate
* @validate NotEmpty * @TYPO3\CMS\Extbase\Annotation\Validate("NotEmpty")
*/ */
protected $certificate; protected $certificate;
...@@ -157,7 +158,7 @@ class JobApplication extends AbstractEntity { ...@@ -157,7 +158,7 @@ class JobApplication extends AbstractEntity {
/** /**
* @var bool * @var bool
* @validate Boolean(is=TRUE) * @TYPO3\CMS\Extbase\Annotation\Validate("Boolean", options={"is": TRUE})
*/ */
protected $privacyPolicy = FALSE; protected $privacyPolicy = FALSE;
......
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