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

[TASK] Correcting the job id in application model

parent 4fa7ca7b
No related branches found
No related tags found
No related merge requests found
...@@ -35,9 +35,12 @@ use TYPO3\CMS\Extbase\Persistence\ObjectStorage; ...@@ -35,9 +35,12 @@ use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
class JobApplication extends AbstractEntity { class JobApplication extends AbstractEntity {
/** /**
* @var \SGalinski\SgJobs\Domain\Model\Job $job * this is a sharepoint id. nothing from the db
*
* @var string $jobId
* @validate NotEmpty
*/ */
protected $job = ''; protected $jobId = '';
/** /**
* @var string $gender * @var string $gender
...@@ -141,17 +144,17 @@ class JobApplication extends AbstractEntity { ...@@ -141,17 +144,17 @@ class JobApplication extends AbstractEntity {
} }
/** /**
* @return \SGalinski\SgJobs\Domain\Model\Job * @return string
*/ */
public function getJob() { public function getJobId() {
return $this->job; return $this->jobId;
} }
/** /**
* @param \SGalinski\SgJobs\Domain\Model\Job $job * @param string $jobId
*/ */
public function setJob(Job $job) { public function setJob($jobId) {
$this->job = $job; $this->jobId = $jobId;
} }
/** /**
......
...@@ -32,7 +32,7 @@ return [ ...@@ -32,7 +32,7 @@ return [
'types' => [ 'types' => [
'1' => [ '1' => [
'showitem' => '--palette--;;sysLanguageAndHidden,job_id, gender, first_name, last_name, street, city, zip, 'showitem' => '--palette--;;sysLanguageAndHidden,job_id, gender, first_name, last_name, street, city, zip,
country, nationality, education, birth_date, phone, mobile, email, message, cover_letter, certificates, cv, country, nationality, education, birth_date, phone, mobile, email, message, cover_letter, cv, certificates,
div;;richtext[*]:rte_transform[mode=ts], div;;richtext[*]:rte_transform[mode=ts],
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime', --div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
], ],
...@@ -124,27 +124,14 @@ return [ ...@@ -124,27 +124,14 @@ return [
], ],
], ],
], ],
'job' => [ 'job_id' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.job', 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.job',
'config' => [ 'config' => [
'type' => 'select', 'type' => 'input',
'eval' => 'required', 'size' => 30,
'renderType' => 'selectSingle', 'eval' => 'trim, required'
'internal_type' => 'db', ],
'foreign_table' => 'tx_sgjobs_domain_model_job',
'size' => 1,
'maxitems' => 1,
'multiple' => 0,
'fieldControl' => [
'editPopup' => [
'disabled' => FALSE,
],
'addRecord' => [
'disabled' => FALSE,
]
],
]
], ],
'gender' => [ 'gender' => [
'exclude' => 0, 'exclude' => 0,
......
...@@ -143,7 +143,7 @@ CREATE TABLE tx_sgjobs_domain_model_job_application ( ...@@ -143,7 +143,7 @@ CREATE TABLE tx_sgjobs_domain_model_job_application (
pid int(11) DEFAULT '0' NOT NULL, pid int(11) DEFAULT '0' NOT NULL,
-- Custom fields -- Custom fields
job int(11) unsigned DEFAULT '0' NOT NULL, job_id text DEFAULT '' NOT NULL,
gender varchar(30) DEFAULT '' NOT NULL, gender varchar(30) DEFAULT '' NOT NULL,
first_name text DEFAULT '' NOT NULL, first_name text DEFAULT '' NOT NULL,
last_name text DEFAULT '' NOT NULL, last_name text DEFAULT '' NOT NULL,
......
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