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;
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
......@@ -141,17 +144,17 @@ class JobApplication extends AbstractEntity {
}
/**
* @return \SGalinski\SgJobs\Domain\Model\Job
* @return string
*/
public function getJob() {
return $this->job;
public function getJobId() {
return $this->jobId;
}
/**
* @param \SGalinski\SgJobs\Domain\Model\Job $job
* @param string $jobId
*/
public function setJob(Job $job) {
$this->job = $job;
public function setJob($jobId) {
$this->jobId = $jobId;
}
/**
......
......@@ -32,7 +32,7 @@ return [
'types' => [
'1' => [
'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--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime',
],
......@@ -124,27 +124,14 @@ return [
],
],
],
'job' => [
'job_id' => [
'exclude' => 0,
'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.job',
'config' => [
'type' => 'select',
'eval' => 'required',
'renderType' => 'selectSingle',
'internal_type' => 'db',
'foreign_table' => 'tx_sgjobs_domain_model_job',
'size' => 1,
'maxitems' => 1,
'multiple' => 0,
'fieldControl' => [
'editPopup' => [
'disabled' => FALSE,
],
'addRecord' => [
'disabled' => FALSE,
]
],
]
'type' => 'input',
'size' => 30,
'eval' => 'trim, required'
],
],
'gender' => [
'exclude' => 0,
......
......@@ -143,7 +143,7 @@ CREATE TABLE tx_sgjobs_domain_model_job_application (
pid int(11) DEFAULT '0' NOT NULL,
-- Custom fields
job int(11) unsigned DEFAULT '0' NOT NULL,
job_id text DEFAULT '' NOT NULL,
gender varchar(30) DEFAULT '' NOT NULL,
first_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