Rector passed again on JobBundle entities

This commit is contained in:
Julie Lenaerts 2024-04-19 11:07:45 +02:00
parent 8e3322f578
commit 63fe8070c4
9 changed files with 166 additions and 152 deletions

View File

@ -21,7 +21,7 @@ class CSPerson
/** /**
* @var int * @var int
*/ */
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'NONE')] #[ORM\GeneratedValue(strategy: 'NONE')]
private ?int $id = null; private ?int $id = null;
@ -45,14 +45,14 @@ class CSPerson
/** /**
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'situationLogement', type: 'string', length: 255, nullable: true)] #[ORM\Column(name: 'situationLogement', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $situationLogement = null; private ?string $situationLogement = null;
/** /**
* *
* @var string * @var string
*/ */
#[ORM\Column(name: 'situationLogementPrecision', type: 'text', nullable: true)] #[ORM\Column(name: 'situationLogementPrecision', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $situationLogementPrecision = null; private ?string $situationLogementPrecision = null;
/** /**
@ -60,7 +60,7 @@ class CSPerson
* *
* @Assert\GreaterThanOrEqual(0) * @Assert\GreaterThanOrEqual(0)
*/ */
#[ORM\Column(name: 'enfantACharge', type: 'integer', nullable: true)] #[ORM\Column(name: 'enfantACharge', type: \Doctrine\DBAL\Types\Types::INTEGER, nullable: true)]
private ?int $enfantACharge = null; private ?int $enfantACharge = null;
public const NIVEAU_MAITRISE_LANGUE = [ public const NIVEAU_MAITRISE_LANGUE = [
@ -70,13 +70,13 @@ class CSPerson
/** /**
* @var string[]|null * @var string[]|null
*/ */
#[ORM\Column(name: 'niveauMaitriseLangue', type: 'json', nullable: true)] #[ORM\Column(name: 'niveauMaitriseLangue', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $niveauMaitriseLangue; private $niveauMaitriseLangue;
/** /**
* @var bool|null * @var bool|null
*/ */
#[ORM\Column(name: 'vehiculePersonnel', type: 'boolean', nullable: true)] #[ORM\Column(name: 'vehiculePersonnel', type: \Doctrine\DBAL\Types\Types::BOOLEAN, nullable: true)]
private ?bool $vehiculePersonnel = null; private ?bool $vehiculePersonnel = null;
public const PERMIS_CONDUIRE = [ public const PERMIS_CONDUIRE = [
@ -86,7 +86,7 @@ class CSPerson
/** /**
* @var string[]|null * @var string[]|null
*/ */
#[ORM\Column(name: 'permisConduire', type: 'json', nullable: true)] #[ORM\Column(name: 'permisConduire', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $permisConduire; private $permisConduire;
public const SITUATION_PROFESSIONNELLE = [ public const SITUATION_PROFESSIONNELLE = [
@ -96,13 +96,13 @@ class CSPerson
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'situationProfessionnelle', type: 'string', length: 255, nullable: true)] #[ORM\Column(name: 'situationProfessionnelle', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $situationProfessionnelle = null; private ?string $situationProfessionnelle = null;
/** /**
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'dateFinDernierEmploi', type: 'date', nullable: true)] #[ORM\Column(name: 'dateFinDernierEmploi', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateFinDernierEmploi = null; private ?\DateTimeInterface $dateFinDernierEmploi = null;
public const TYPE_CONTRAT = [ public const TYPE_CONTRAT = [
@ -118,14 +118,14 @@ class CSPerson
/** /**
* @var string[]|null * @var string[]|null
*/ */
#[ORM\Column(name: 'typeContrat', type: 'json', nullable: true)] #[ORM\Column(name: 'typeContrat', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $typeContrat; private $typeContrat;
/** /**
* *
* @var string * @var string
*/ */
#[ORM\Column(name: 'typeContratAide', type: 'text', nullable: true)] #[ORM\Column(name: 'typeContratAide', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $typeContratAide = null; private ?string $typeContratAide = null;
public const RESSOURCES = [ public const RESSOURCES = [
@ -140,32 +140,32 @@ class CSPerson
/** /**
* @var string[]|null * @var string[]|null
*/ */
#[ORM\Column(name: 'ressources', type: 'json', nullable: true)] #[ORM\Column(name: 'ressources', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $ressources; private $ressources;
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'ressourcesComment', type: 'text', nullable: true)] #[ORM\Column(name: 'ressourcesComment', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $ressourcesComment = null; private ?string $ressourcesComment = null;
/** /**
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'ressourceDate1Versement', type: 'date', nullable: true)] #[ORM\Column(name: 'ressourceDate1Versement', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $ressourceDate1Versement = null; private ?\DateTimeInterface $ressourceDate1Versement = null;
/** /**
* @var double * @var double
*/ */
#[ORM\Column(name: 'CPFMontant', type: 'decimal', nullable: true, precision: 10, scale: 2)] // Assert\GreaterOrEqualThan(0) #[ORM\Column(name: 'CPFMontant', type: \Doctrine\DBAL\Types\Types::DECIMAL, nullable: true, precision: 10, scale: 2)] // Assert\GreaterOrEqualThan(0)
private ?string $cPFMontant = null; private ?string $cPFMontant = null;
/** /**
* *
* @var double * @var double
*/ */
#[ORM\Column(name: 'acomptedif', type: 'decimal', nullable: true, precision: 10, scale: 2)] // Assert\GreaterOrEqualThan(0) #[ORM\Column(name: 'acomptedif', type: \Doctrine\DBAL\Types\Types::DECIMAL, nullable: true, precision: 10, scale: 2)] // Assert\GreaterOrEqualThan(0)
private ?string $acompteDIF = null; private ?string $acompteDIF = null;
public const ACCOMPAGNEMENTS = [ public const ACCOMPAGNEMENTS = [
@ -180,69 +180,69 @@ class CSPerson
/** /**
* @var string[]|null * @var string[]|null
*/ */
#[ORM\Column(name: 'accompagnement', type: 'json', nullable: true)] #[ORM\Column(name: 'accompagnement', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $accompagnement; private $accompagnement;
/** /**
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'accompagnementRQTHDate', type: 'date', nullable: true)] #[ORM\Column(name: 'accompagnementRQTHDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $accompagnementRQTHDate = null; private ?\DateTimeInterface $accompagnementRQTHDate = null;
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'accompagnementComment', type: 'string', length: 255, nullable: true)] #[ORM\Column(name: 'accompagnementComment', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $accompagnementComment = null; private ?string $accompagnementComment = null;
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'poleEmploiId', type: 'string', length: 255, nullable: true)] #[ORM\Column(name: 'poleEmploiId', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $poleEmploiId = null; private ?string $poleEmploiId = null;
/** /**
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'poleEmploiInscriptionDate', type: 'date', nullable: true)] #[ORM\Column(name: 'poleEmploiInscriptionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $poleEmploiInscriptionDate = null; private ?\DateTimeInterface $poleEmploiInscriptionDate = null;
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'cafId', type: 'string', length: 255, nullable: true)] #[ORM\Column(name: 'cafId', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $cafId = null; private ?string $cafId = null;
/** /**
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'cafInscriptionDate', type: 'date', nullable: true)] #[ORM\Column(name: 'cafInscriptionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $cafInscriptionDate = null; private ?\DateTimeInterface $cafInscriptionDate = null;
/** /**
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'CERInscriptionDate', type: 'date', nullable: true)] #[ORM\Column(name: 'CERInscriptionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $cERInscriptionDate = null; private ?\DateTimeInterface $cERInscriptionDate = null;
/** /**
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'PPAEInscriptionDate', type: 'date', nullable: true)] #[ORM\Column(name: 'PPAEInscriptionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $pPAEInscriptionDate = null; private ?\DateTimeInterface $pPAEInscriptionDate = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'CERSignataire', type: 'text', nullable: true)] #[ORM\Column(name: 'CERSignataire', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $cERSignataire = null; private ?string $cERSignataire = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'PPAESignataire', type: 'text', nullable: true)] #[ORM\Column(name: 'PPAESignataire', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $pPAESignataire = null; private ?string $pPAESignataire = null;
public const NEET_ELIGIBILITY = [ public const NEET_ELIGIBILITY = [
@ -254,19 +254,19 @@ class CSPerson
/** /**
* @var bool * @var bool
*/ */
#[ORM\Column(name: 'NEETEligibilite', type: 'string', nullable: true)] #[ORM\Column(name: 'NEETEligibilite', type: \Doctrine\DBAL\Types\Types::STRING, nullable: true)]
private ?string $nEETEligibilite = null; private ?string $nEETEligibilite = null;
/** /**
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'NEETCommissionDate', type: 'date', nullable: true)] #[ORM\Column(name: 'NEETCommissionDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $nEETCommissionDate = null; private ?\DateTimeInterface $nEETCommissionDate = null;
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'FSEMaDemarcheCode', type: 'text', nullable: true)] #[ORM\Column(name: 'FSEMaDemarcheCode', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $fSEMaDemarcheCode = null; private ?string $fSEMaDemarcheCode = null;
@ -275,35 +275,35 @@ class CSPerson
* *
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'datecontratIEJ', type: 'date', nullable: true)] #[ORM\Column(name: 'datecontratIEJ', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateContratIEJ = null; private ?\DateTimeInterface $dateContratIEJ = null;
/** /**
* *
* @var \DateTimeInterface * @var \DateTimeInterface
*/ */
#[ORM\Column(name: 'dateavenantIEJ', type: 'date', nullable: true)] #[ORM\Column(name: 'dateavenantIEJ', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $dateAvenantIEJ = null; private ?\DateTimeInterface $dateAvenantIEJ = null;
/** /**
* *
* @var string * @var string
*/ */
#[ORM\Column(name: 'dispositifs_notes', type: 'text', nullable: true)] #[ORM\Column(name: 'dispositifs_notes', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $dispositifsNotes = null; private ?string $dispositifsNotes = null;
/** /**
* *
* @var bool * @var bool
*/ */
#[ORM\Column(name: 'handicap', type: 'boolean', nullable: true)] #[ORM\Column(name: 'handicap', type: \Doctrine\DBAL\Types\Types::BOOLEAN, nullable: true)]
private ?bool $handicapIs = null; private ?bool $handicapIs = null;
/** /**
* *
* @var string * @var string
*/ */
#[ORM\Column(name: 'handicapnotes', type: 'text', nullable: true)] #[ORM\Column(name: 'handicapnotes', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $handicapNotes = null; private ?string $handicapNotes = null;
public const HANDICAP_RECOMMANDATIONS = [ public const HANDICAP_RECOMMANDATIONS = [
@ -316,7 +316,7 @@ class CSPerson
* *
* @var string * @var string
*/ */
#[ORM\Column(name: 'handicapRecommandation', type: 'string', length: 50, nullable: true)] #[ORM\Column(name: 'handicapRecommandation', type: \Doctrine\DBAL\Types\Types::STRING, length: 50, nullable: true)]
private ?string $handicapRecommandation = null; private ?string $handicapRecommandation = null;
/** /**
@ -324,7 +324,7 @@ class CSPerson
* @var ThirdParty * @var ThirdParty
* *
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\ThirdPartyBundle\Entity\ThirdParty::class)] #[ORM\ManyToOne(targetEntity: ThirdParty::class)]
private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $handicapAccompagnement = null; private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $handicapAccompagnement = null;
public const MOBILITE_MOYEN_TRANSPORT = [ public const MOBILITE_MOYEN_TRANSPORT = [
@ -339,20 +339,20 @@ class CSPerson
* *
* @var string[] * @var string[]
*/ */
#[ORM\Column(name: 'mobilitemoyentransport', type: 'json', nullable: true)] #[ORM\Column(name: 'mobilitemoyentransport', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $mobiliteMoyenDeTransport; private $mobiliteMoyenDeTransport;
/** /**
* *
* @var string * @var string
*/ */
#[ORM\Column(name: 'mobilitenotes', type: 'text', nullable: true)] #[ORM\Column(name: 'mobilitenotes', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $mobiliteNotes = null; private ?string $mobiliteNotes = null;
/** /**
* @var StoredObject|null * @var StoredObject|null
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentCV = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentCV = null;
/** /**
@ -360,7 +360,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAgrementIAE = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAgrementIAE = null;
/** /**
@ -368,7 +368,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentRQTH = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentRQTH = null;
/** /**
@ -376,7 +376,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationNEET = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationNEET = null;
@ -385,7 +385,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentCI = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentCI = null;
/** /**
@ -393,7 +393,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentTitreSejour = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentTitreSejour = null;
/** /**
@ -401,7 +401,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationFiscale = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationFiscale = null;
/** /**
@ -409,7 +409,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentPermis = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentPermis = null;
/** /**
@ -417,7 +417,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationCAAF = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationCAAF = null;
/** /**
@ -425,7 +425,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentContraTravail = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentContraTravail = null;
/** /**
@ -433,7 +433,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationFormation = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationFormation = null;
/** /**
@ -441,7 +441,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentQuittanceLoyer = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentQuittanceLoyer = null;
/** /**
@ -449,7 +449,7 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentFactureElectricite = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentFactureElectricite = null;
/** /**
@ -457,13 +457,13 @@ class CSPerson
* *
* @Assert\Valid() * @Assert\Valid()
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\DocStoreBundle\Entity\StoredObject::class, cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])]
private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationSecuriteSociale = null; private ?\Chill\DocStoreBundle\Entity\StoredObject $documentAttestationSecuriteSociale = null;
/** /**
* @var ThirdParty|null * @var ThirdParty|null
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\ThirdPartyBundle\Entity\ThirdParty::class)] #[ORM\ManyToOne(targetEntity: ThirdParty::class)]
private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $prescripteur = null; private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $prescripteur = null;
/** /**

View File

@ -24,7 +24,7 @@ use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\CVRepository::class)] #[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\CVRepository::class)]
class CV implements \Stringable class CV implements \Stringable
{ {
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')] #[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null; private ?int $id = null;
@ -32,7 +32,7 @@ class CV implements \Stringable
/** /**
* @Assert\NotNull() * @Assert\NotNull()
*/ */
#[ORM\Column(name: 'reportDate', type: 'date')] #[ORM\Column(name: 'reportDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE)]
private ?\DateTimeInterface $reportDate = null; private ?\DateTimeInterface $reportDate = null;
public const FORMATION_LEVEL = [ public const FORMATION_LEVEL = [
@ -49,7 +49,7 @@ class CV implements \Stringable
/** /**
* @Assert\NotBlank() * @Assert\NotBlank()
*/ */
#[ORM\Column(name: 'formationLevel', type: 'string', length: 255, nullable: true)] #[ORM\Column(name: 'formationLevel', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $formationLevel = null; private ?string $formationLevel = null;
public const FORMATION_TYPE = [ public const FORMATION_TYPE = [
@ -57,30 +57,32 @@ class CV implements \Stringable
'formation_continue', 'formation_continue',
]; ];
#[ORM\Column(name: 'formationType', type: 'string', length: 255, nullable: true)] #[ORM\Column(name: 'formationType', type: \Doctrine\DBAL\Types\Types::STRING, length: 255, nullable: true)]
private ?string $formationType = null; private ?string $formationType = null;
/** /**
* @var string[]|null * @var string[]|null
*/ */
#[ORM\Column(name: 'spokenLanguages', type: 'json', nullable: true)] #[ORM\Column(name: 'spokenLanguages', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $spokenLanguages; private $spokenLanguages;
#[ORM\Column(name: 'notes', type: 'text', nullable: true)] #[ORM\Column(name: 'notes', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $notes = null; private ?string $notes = null;
/** /**
* @Assert\Valid(traverse=true) * @Assert\Valid(traverse=true)
* @var \Doctrine\Common\Collections\Collection<int, \Chill\ChillJobBundle\Entity\CV\Formation>
*/ */
#[ORM\OneToMany(targetEntity: CV\Formation::class, mappedBy: 'CV', cascade: ['persist', 'remove', 'detach'], orphanRemoval: true)] #[ORM\OneToMany(targetEntity: CV\Formation::class, mappedBy: 'CV', cascade: ['persist', 'remove', 'detach'], orphanRemoval: true)]
#[ORM\OrderBy(['startDate' => 'DESC', 'endDate' => 'DESC'])] #[ORM\OrderBy(['startDate' => \Doctrine\Common\Collections\Criteria::DESC, 'endDate' => 'DESC'])]
private Collection $formations; private Collection $formations;
/** /**
* @Assert\Valid(traverse=true) * @Assert\Valid(traverse=true)
* @var \Doctrine\Common\Collections\Collection<int, \Chill\ChillJobBundle\Entity\CV\Experience>
*/ */
#[ORM\OneToMany(targetEntity: CV\Experience::class, mappedBy: 'CV', cascade: ['persist', 'remove', 'detach'], orphanRemoval: true)] #[ORM\OneToMany(targetEntity: CV\Experience::class, mappedBy: 'CV', cascade: ['persist', 'remove', 'detach'], orphanRemoval: true)]
#[ORM\OrderBy(['startDate' => 'DESC', 'endDate' => 'DESC'])] #[ORM\OrderBy(['startDate' => \Doctrine\Common\Collections\Criteria::DESC, 'endDate' => 'DESC'])]
private Collection $experiences; private Collection $experiences;
#[ORM\ManyToOne(targetEntity: Person::class)] #[ORM\ManyToOne(targetEntity: Person::class)]

View File

@ -22,24 +22,24 @@ use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\CV\ExperienceRepository::class)] #[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\CV\ExperienceRepository::class)]
class Experience class Experience
{ {
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')] #[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null; private ?int $id = null;
#[ORM\Column(name: 'poste', type: 'text', nullable: true)] #[ORM\Column(name: 'poste', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $poste = null; private ?string $poste = null;
#[ORM\Column(name: 'structure', type: 'text', nullable: true)] #[ORM\Column(name: 'structure', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $structure = null; private ?string $structure = null;
#[ORM\Column(name: 'startDate', type: 'date', nullable: true)] #[ORM\Column(name: 'startDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $startDate = null; private ?\DateTimeInterface $startDate = null;
/** /**
* @Assert\GreaterThan(propertyPath="startDate", message="La date de fin doit être postérieure à la date de début") * @Assert\GreaterThan(propertyPath="startDate", message="La date de fin doit être postérieure à la date de début")
*/ */
#[ORM\Column(name: 'endDate', type: 'date', nullable: true)] #[ORM\Column(name: 'endDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $endDate = null; private ?\DateTimeInterface $endDate = null;
public const CONTRAT_TYPE = [ public const CONTRAT_TYPE = [
@ -58,10 +58,10 @@ class Experience
'autres', 'autres',
]; ];
#[ORM\Column(name: 'contratType', type: 'string', length: 100)] #[ORM\Column(name: 'contratType', type: \Doctrine\DBAL\Types\Types::STRING, length: 100)]
private ?string $contratType = null; private ?string $contratType = null;
#[ORM\Column(name: 'notes', type: 'text', nullable: true)] #[ORM\Column(name: 'notes', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $notes = null; private ?string $notes = null;
#[ORM\ManyToOne(targetEntity: CV::class, inversedBy: 'experiences')] #[ORM\ManyToOne(targetEntity: CV::class, inversedBy: 'experiences')]

View File

@ -22,7 +22,7 @@ use Symfony\Component\Validator\Constraints as Assert;
#[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\CV\FormationRepository::class)] #[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\CV\FormationRepository::class)]
class Formation class Formation
{ {
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')] #[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null; private ?int $id = null;
@ -32,33 +32,33 @@ class Formation
* *
* @Assert\NotNull() * @Assert\NotNull()
*/ */
#[ORM\Column(name: 'title', type: 'text')] #[ORM\Column(name: 'title', type: \Doctrine\DBAL\Types\Types::TEXT)]
private ?string $title = null; private ?string $title = null;
#[ORM\Column(name: 'startDate', type: 'date', nullable: true)] #[ORM\Column(name: 'startDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $startDate = null; private ?\DateTimeInterface $startDate = null;
/** /**
* @Assert\GreaterThan(propertyPath="startDate", message="La date de fin doit être postérieure à la date de début") * @Assert\GreaterThan(propertyPath="startDate", message="La date de fin doit être postérieure à la date de début")
*/ */
#[ORM\Column(name: 'endDate', type: 'date', nullable: true)] #[ORM\Column(name: 'endDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $endDate = null; private ?\DateTimeInterface $endDate = null;
public const DIPLOMA_OBTAINED = [ public const DIPLOMA_OBTAINED = [
'fr', 'non-fr', 'aucun', 'fr', 'non-fr', 'aucun',
]; ];
#[ORM\Column(name: 'diplomaObtained', type: 'string', nullable: true)] #[ORM\Column(name: 'diplomaObtained', type: \Doctrine\DBAL\Types\Types::STRING, nullable: true)]
private ?string $diplomaObtained = null; private ?string $diplomaObtained = null;
public const DIPLOMA_RECONNU = [ public const DIPLOMA_RECONNU = [
'oui', 'non', 'nsp', 'oui', 'non', 'nsp',
]; ];
#[ORM\Column(name: 'diplomaReconnue', type: 'string', length: 50, nullable: true)] #[ORM\Column(name: 'diplomaReconnue', type: \Doctrine\DBAL\Types\Types::STRING, length: 50, nullable: true)]
private ?string $diplomaReconnue = null; private ?string $diplomaReconnue = null;
#[ORM\Column(name: 'organisme', type: 'text', nullable: true)] #[ORM\Column(name: 'organisme', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $organisme = null; private ?string $organisme = null;
#[ORM\ManyToOne(targetEntity: CV::class, inversedBy: 'formations')] #[ORM\ManyToOne(targetEntity: CV::class, inversedBy: 'formations')]

View File

@ -23,7 +23,7 @@ use Symfony\Component\Validator\Context\ExecutionContextInterface;
#[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\FreinRepository::class)] #[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\FreinRepository::class)]
class Frein implements HasPerson, \Stringable class Frein implements HasPerson, \Stringable
{ {
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')] #[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null; private ?int $id = null;
@ -37,7 +37,7 @@ class Frein implements HasPerson, \Stringable
* message="La date du rapport ne peut pas être plus de cinq ans dans le passé" * message="La date du rapport ne peut pas être plus de cinq ans dans le passé"
* ) * )
*/ */
#[ORM\Column(name: 'reportDate', type: 'date')] #[ORM\Column(name: 'reportDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE)]
private ?\DateTimeInterface $reportDate = null; private ?\DateTimeInterface $reportDate = null;
public const FREINS_PERSO = [ public const FREINS_PERSO = [
@ -53,10 +53,10 @@ class Frein implements HasPerson, \Stringable
/** /**
* @var string[] * @var string[]
*/ */
#[ORM\Column(name: 'freinsPerso', type: 'json')] #[ORM\Column(name: 'freinsPerso', type: \Doctrine\DBAL\Types\Types::JSON)]
private $freinsPerso = []; private $freinsPerso = [];
#[ORM\Column(name: 'notesPerso', type: 'text')] #[ORM\Column(name: 'notesPerso', type: \Doctrine\DBAL\Types\Types::TEXT)]
private ?string $notesPerso = ''; private ?string $notesPerso = '';
public const FREINS_EMPLOI = [ public const FREINS_EMPLOI = [
@ -71,10 +71,10 @@ class Frein implements HasPerson, \Stringable
/** /**
* @var string[] * @var string[]
*/ */
#[ORM\Column(name: 'freinsEmploi', type: 'json')] #[ORM\Column(name: 'freinsEmploi', type: \Doctrine\DBAL\Types\Types::JSON)]
private $freinsEmploi = []; private $freinsEmploi = [];
#[ORM\Column(name: 'notesEmploi', type: 'text')] #[ORM\Column(name: 'notesEmploi', type: \Doctrine\DBAL\Types\Types::TEXT)]
private ?string $notesEmploi = ''; private ?string $notesEmploi = '';
/** /**

View File

@ -2,6 +2,7 @@
namespace Chill\ChillJobBundle\Entity; namespace Chill\ChillJobBundle\Entity;
use Chill\ChillJobBundle\Repository\ImmersionRepository;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Chill\ThirdPartyBundle\Entity\ThirdParty; use Chill\ThirdPartyBundle\Entity\ThirdParty;
use Chill\PersonBundle\Entity\Person; use Chill\PersonBundle\Entity\Person;
@ -14,7 +15,7 @@ use Chill\MainBundle\Validation\Constraint\PhonenumberConstraint;
* Immersion * Immersion
*/ */
#[ORM\Table(name: 'chill_csconnectes.immersion')] #[ORM\Table(name: 'chill_csconnectes.immersion')]
#[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\ImmersionRepository::class)] #[ORM\Entity(repositoryClass: ImmersionRepository::class)]
class Immersion implements \Stringable class Immersion implements \Stringable
{ {
public const YES_NO_NSP = [ public const YES_NO_NSP = [
@ -26,7 +27,7 @@ class Immersion implements \Stringable
/** /**
* @var int * @var int
*/ */
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')] #[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null; private ?int $id = null;
@ -48,14 +49,14 @@ class Immersion implements \Stringable
* @Assert\NotNull() * @Assert\NotNull()
* @Assert\Length(min=2) * @Assert\Length(min=2)
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\ThirdPartyBundle\Entity\ThirdParty::class)] #[ORM\ManyToOne(targetEntity: ThirdParty::class)]
private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $entreprise = null; private ?\Chill\ThirdPartyBundle\Entity\ThirdParty $entreprise = null;
/** /**
* @var User|null * @var User|null
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\MainBundle\Entity\User::class)] #[ORM\ManyToOne(targetEntity: User::class)]
private ?\Chill\MainBundle\Entity\User $referent = null; private ?\Chill\MainBundle\Entity\User $referent = null;
@ -66,7 +67,7 @@ class Immersion implements \Stringable
* @Assert\NotNull() * @Assert\NotNull()
* @Assert\Length(min=2) * @Assert\Length(min=2)
*/ */
#[ORM\Column(name: 'domaineActivite', type: 'text', nullable: true)] #[ORM\Column(name: 'domaineActivite', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $domaineActivite = null; private ?string $domaineActivite = null;
/** /**
@ -75,7 +76,7 @@ class Immersion implements \Stringable
* @Assert\NotNull() * @Assert\NotNull()
* @Assert\Length(min=2) * @Assert\Length(min=2)
*/ */
#[ORM\Column(name: 'tuteurName', type: 'text', nullable: true)] #[ORM\Column(name: 'tuteurName', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $tuteurName = null; private ?string $tuteurName = null;
/** /**
@ -84,7 +85,7 @@ class Immersion implements \Stringable
* @Assert\NotNull() * @Assert\NotNull()
* @Assert\Length(min=2) * @Assert\Length(min=2)
*/ */
#[ORM\Column(name: 'tuteurFonction', type: 'text', nullable: true)] #[ORM\Column(name: 'tuteurFonction', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $tuteurFonction = null; private ?string $tuteurFonction = null;
/** /**
@ -93,40 +94,40 @@ class Immersion implements \Stringable
* @Assert\NotNull() * @Assert\NotNull()
* @Assert\NotBlank() * @Assert\NotBlank()
*/ */
#[ORM\Column(name: 'tuteurPhoneNumber', type: 'text', nullable: true)] #[ORM\Column(name: 'tuteurPhoneNumber', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
#[PhonenumberConstraint(type: 'any')] #[PhonenumberConstraint(type: 'any')]
private ?string $tuteurPhoneNumber = null; private ?string $tuteurPhoneNumber = null;
/** /**
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'structureAccName', type: 'text', nullable: true)] #[ORM\Column(name: 'structureAccName', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $structureAccName = null; private ?string $structureAccName = null;
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'structureAccPhonenumber', type: 'text', nullable: true)] #[ORM\Column(name: 'structureAccPhonenumber', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
#[PhonenumberConstraint(type: 'any')] #[PhonenumberConstraint(type: 'any')]
private ?string $structureAccPhonenumber = null; private ?string $structureAccPhonenumber = null;
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'structureAccEmail', type: 'text', nullable: true)] #[ORM\Column(name: 'structureAccEmail', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $structureAccEmail = null; private ?string $structureAccEmail = null;
/** /**
* *
* @var Address|null * @var Address|null
*/ */
#[ORM\ManyToOne(targetEntity: \\Chill\MainBundle\Entity\Address::class, cascade: ['persist', 'remove'])] #[ORM\ManyToOne(targetEntity: Address::class, cascade: ['persist', 'remove'])]
private ?\Chill\MainBundle\Entity\Address $structureAccAddress = null; private ?\Chill\MainBundle\Entity\Address $structureAccAddress = null;
/** /**
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'posteDescriptif', type: 'text', nullable: true)] #[ORM\Column(name: 'posteDescriptif', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $posteDescriptif = null; private ?string $posteDescriptif = null;
/** /**
@ -135,7 +136,7 @@ class Immersion implements \Stringable
* @Assert\NotNull() * @Assert\NotNull()
* @Assert\Length(min=2) * @Assert\Length(min=2)
*/ */
#[ORM\Column(name: 'posteTitle', type: 'text', nullable: true)] #[ORM\Column(name: 'posteTitle', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $posteTitle = null; private ?string $posteTitle = null;
/** /**
@ -144,7 +145,7 @@ class Immersion implements \Stringable
* @Assert\NotNull() * @Assert\NotNull()
* @Assert\Length(min=2) * @Assert\Length(min=2)
*/ */
#[ORM\Column(name: 'posteLieu', type: 'text', nullable: true)] #[ORM\Column(name: 'posteLieu', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $posteLieu = null; private ?string $posteLieu = null;
/** /**
@ -152,7 +153,7 @@ class Immersion implements \Stringable
* *
* @Assert\NotNull() * @Assert\NotNull()
*/ */
#[ORM\Column(name: 'debutDate', type: 'date', nullable: true)] #[ORM\Column(name: 'debutDate', type: \Doctrine\DBAL\Types\Types::DATE_MUTABLE, nullable: true)]
private ?\DateTimeInterface $debutDate = null; private ?\DateTimeInterface $debutDate = null;
/** /**
@ -160,7 +161,7 @@ class Immersion implements \Stringable
* *
* @Assert\NotNull() * @Assert\NotNull()
*/ */
#[ORM\Column(name: 'duration', type: 'dateinterval', nullable: true)] #[ORM\Column(name: 'duration', type: \Doctrine\DBAL\Types\Types::DATEINTERVAL, nullable: true)]
private $duration; private $duration;
/** /**
@ -169,7 +170,7 @@ class Immersion implements \Stringable
* @Assert\NotNull() * @Assert\NotNull()
* @Assert\Length(min=2) * @Assert\Length(min=2)
*/ */
#[ORM\Column(name: 'horaire', type: 'text', nullable: true)] #[ORM\Column(name: 'horaire', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $horaire = null; private ?string $horaire = null;
public const OBJECTIFS = [ public const OBJECTIFS = [
@ -184,21 +185,21 @@ class Immersion implements \Stringable
/** /**
* @var array|null * @var array|null
*/ */
#[ORM\Column(name: 'objectifs', type: 'json', nullable: true)] #[ORM\Column(name: 'objectifs', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $objectifs; private $objectifs;
/** /**
* *
* @var string * @var string
*/ */
#[ORM\Column(name: 'objectifsAutre', type: 'text', nullable: true)] #[ORM\Column(name: 'objectifsAutre', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $objectifsAutre = null; private ?string $objectifsAutre = null;
/** /**
* *
* @var bool * @var bool
*/ */
#[ORM\Column(name: 'is_bilan_fullfilled', type: 'boolean', options: ['default' => false])] #[ORM\Column(name: 'is_bilan_fullfilled', type: \Doctrine\DBAL\Types\Types::BOOLEAN, options: ['default' => false])]
private ?bool $isBilanFullfilled = false; private ?bool $isBilanFullfilled = false;
public const SAVOIR_ETRE = [ public const SAVOIR_ETRE = [
@ -213,44 +214,44 @@ class Immersion implements \Stringable
/** /**
* @var array|null * @var array|null
*/ */
#[ORM\Column(name: 'savoirEtre', type: 'json', nullable: true)] #[ORM\Column(name: 'savoirEtre', type: \Doctrine\DBAL\Types\Types::JSON, nullable: true)]
private $savoirEtre; private $savoirEtre;
/** /**
* *
* @var string * @var string
*/ */
#[ORM\Column(name: 'savoirEtreNote', type: 'text', nullable: true)] #[ORM\Column(name: 'savoirEtreNote', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $savoirEtreNote = null; private ?string $savoirEtreNote = null;
/** /**
* @var string * @var string
*/ */
#[ORM\Column(name: 'noteimmersion', type: 'text')] #[ORM\Column(name: 'noteimmersion', type: \Doctrine\DBAL\Types\Types::TEXT)]
private ?string $noteImmersion = ''; private ?string $noteImmersion = '';
/** /**
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'principalesActivites', type: 'text', nullable: true)] #[ORM\Column(name: 'principalesActivites', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $principalesActivites = null; private ?string $principalesActivites = null;
/** /**
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'competencesAcquises', type: 'text', nullable: true)] #[ORM\Column(name: 'competencesAcquises', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $competencesAcquises = null; private ?string $competencesAcquises = null;
/** /**
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'competencesADevelopper', type: 'text', nullable: true)] #[ORM\Column(name: 'competencesADevelopper', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $competencesADevelopper = null; private ?string $competencesADevelopper = null;
/** /**
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'noteBilan', type: 'text', nullable: true)] #[ORM\Column(name: 'noteBilan', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $noteBilan = null; private ?string $noteBilan = null;
public const PONCTUALITE_SALARIE = [ public const PONCTUALITE_SALARIE = [
@ -263,14 +264,14 @@ class Immersion implements \Stringable
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'ponctualite_salarie', type: 'text', nullable: true)] #[ORM\Column(name: 'ponctualite_salarie', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $ponctualiteSalarie = null; private ?string $ponctualiteSalarie = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'ponctualite_salarie_note', type: 'text', nullable: true)] #[ORM\Column(name: 'ponctualite_salarie_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $ponctualiteSalarieNote = null; private ?string $ponctualiteSalarieNote = null;
public const ASSIDUITE = [ public const ASSIDUITE = [
@ -283,28 +284,28 @@ class Immersion implements \Stringable
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'assiduite', type: 'text', nullable: true)] #[ORM\Column(name: 'assiduite', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $assiduite = null; private ?string $assiduite = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'assiduite_note', type: 'text', nullable: true)] #[ORM\Column(name: 'assiduite_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $assiduiteNote = null; private ?string $assiduiteNote = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'interet_activite', type: 'text', nullable: true)] #[ORM\Column(name: 'interet_activite', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $interetActivite = null; private ?string $interetActivite = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'interet_activite_note', type: 'text', nullable: true)] #[ORM\Column(name: 'interet_activite_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $interetActiviteNote = null; private ?string $interetActiviteNote = null;
public const INTEGRE_REGLE = [ public const INTEGRE_REGLE = [
@ -317,112 +318,112 @@ class Immersion implements \Stringable
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'integre_regle', type: 'text', nullable: true)] #[ORM\Column(name: 'integre_regle', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $integreRegle = null; private ?string $integreRegle = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'integre_regle_note', type: 'text', nullable: true)] #[ORM\Column(name: 'integre_regle_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $integreRegleNote = null; private ?string $integreRegleNote = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'esprit_initiative', type: 'text', nullable: true)] #[ORM\Column(name: 'esprit_initiative', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $espritInitiative = null; private ?string $espritInitiative = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'esprit_initiative_note', type: 'text', nullable: true)] #[ORM\Column(name: 'esprit_initiative_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $espritInitiativeNote = null; private ?string $espritInitiativeNote = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'organisation', type: 'text', nullable: true)] #[ORM\Column(name: 'organisation', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $organisation = null; private ?string $organisation = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'organisation_note', type: 'text', nullable: true)] #[ORM\Column(name: 'organisation_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $organisationNote = null; private ?string $organisationNote = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'capacite_travail_equipe', type: 'text', nullable: true)] #[ORM\Column(name: 'capacite_travail_equipe', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $capaciteTravailEquipe = null; private ?string $capaciteTravailEquipe = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'capacite_travail_equipe_note', type: 'text', nullable: true)] #[ORM\Column(name: 'capacite_travail_equipe_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $capaciteTravailEquipeNote = null; private ?string $capaciteTravailEquipeNote = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'style_vestimentaire', type: 'text', nullable: true)] #[ORM\Column(name: 'style_vestimentaire', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $styleVestimentaire = null; private ?string $styleVestimentaire = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'style_vestimentaire_note', type: 'text', nullable: true)] #[ORM\Column(name: 'style_vestimentaire_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $styleVestimentaireNote = null; private ?string $styleVestimentaireNote = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'langage_prof', type: 'text', nullable: true)] #[ORM\Column(name: 'langage_prof', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $langageProf = null; private ?string $langageProf = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'langage_prof_note', type: 'text', nullable: true)] #[ORM\Column(name: 'langage_prof_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $langageProfNote = null; private ?string $langageProfNote = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'applique_consigne', type: 'text', nullable: true)] #[ORM\Column(name: 'applique_consigne', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $appliqueConsigne = null; private ?string $appliqueConsigne = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'applique_consigne_note', type: 'text', nullable: true)] #[ORM\Column(name: 'applique_consigne_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $appliqueConsigneNote = null; private ?string $appliqueConsigneNote = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'respect_hierarchie', type: 'text', nullable: true)] #[ORM\Column(name: 'respect_hierarchie', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $respectHierarchie = null; private ?string $respectHierarchie = null;
/** /**
* *
* @var string|null * @var string|null
*/ */
#[ORM\Column(name: 'respect_hierarchie_note', type: 'text', nullable: true)] #[ORM\Column(name: 'respect_hierarchie_note', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $respectHierarchieNote = null; private ?string $respectHierarchieNote = null;
/** /**

View File

@ -11,6 +11,8 @@ declare(strict_types=1);
namespace Chill\ChillJobBundle\Entity; namespace Chill\ChillJobBundle\Entity;
use Chill\ChillJobBundle\Repository\ProjetProfessionnelRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
@ -22,10 +24,10 @@ use Chill\ChillJobBundle\Entity\Rome\Appellation;
* ProjetProfessionnel. * ProjetProfessionnel.
*/ */
#[ORM\Table(name: 'chill_csconnectes.projet_professionnel')] #[ORM\Table(name: 'chill_csconnectes.projet_professionnel')]
#[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\ProjetProfessionnelRepository::class)] #[ORM\Entity(repositoryClass: ProjetProfessionnelRepository::class)]
class ProjetProfessionnel implements \Stringable class ProjetProfessionnel implements \Stringable
{ {
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')] #[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null; private ?int $id = null;
@ -43,14 +45,17 @@ class ProjetProfessionnel implements \Stringable
/** /**
* @Assert\NotNull() * @Assert\NotNull()
*/ */
#[ORM\Column(name: 'reportDate', type: 'date')] #[ORM\Column(name: 'reportDate', type: Types::DATE_MUTABLE)]
private ?\DateTimeInterface $reportDate = null; private ?\DateTimeInterface $reportDate = null;
/**
* @var \Doctrine\Common\Collections\Collection<int, \Chill\ChillJobBundle\Entity\Rome\Appellation>
*/
#[ORM\JoinTable(name: 'chill_csconnectes.projetprofessionnel_souhait')] #[ORM\JoinTable(name: 'chill_csconnectes.projetprofessionnel_souhait')]
#[ORM\ManyToMany(targetEntity: Appellation::class, cascade: ['persist'])] #[ORM\ManyToMany(targetEntity: Appellation::class, cascade: ['persist'])]
private Collection $souhait; private Collection $souhait;
#[ORM\Column(name: 'domaineActiviteSouhait', type: 'text', nullable: true)] #[ORM\Column(name: 'domaineActiviteSouhait', type: \Doctrine\DBAL\Types\Types::TEXT, nullable: true)]
private ?string $domaineActiviteSouhait = null; private ?string $domaineActiviteSouhait = null;
public const TYPE_CONTRAT = [ public const TYPE_CONTRAT = [
@ -64,10 +69,10 @@ class ProjetProfessionnel implements \Stringable
* *
* @Assert\Count(min=1, minMessage="Indiquez au moins un type de contrat") * @Assert\Count(min=1, minMessage="Indiquez au moins un type de contrat")
*/ */
#[ORM\Column(name: 'typeContrat', type: 'json', nullable: true)] #[ORM\Column(name: 'typeContrat', type: Types::JSON, nullable: true)]
private $typeContrat; private $typeContrat;
#[ORM\Column(name: 'typeContratNotes', type: 'text', nullable: true)] #[ORM\Column(name: 'typeContratNotes', type: Types::TEXT, nullable: true)]
private ?string $typeContratNotes = null; private ?string $typeContratNotes = null;
public const VOLUME_HORAIRES = [ public const VOLUME_HORAIRES = [
@ -80,29 +85,32 @@ class ProjetProfessionnel implements \Stringable
* *
* @Assert\Count(min=1, minMessage="Indiquez un volume horaire souhaité") * @Assert\Count(min=1, minMessage="Indiquez un volume horaire souhaité")
*/ */
#[ORM\Column(name: 'volumeHoraire', type: 'json', nullable: true)] #[ORM\Column(name: 'volumeHoraire', type: Types::JSON, nullable: true)]
private $volumeHoraire; private $volumeHoraire;
#[ORM\Column(name: 'volumeHoraireNotes', type: 'text', nullable: true)] #[ORM\Column(name: 'volumeHoraireNotes', type: Types::TEXT, nullable: true)]
private ?string $volumeHoraireNotes = null; private ?string $volumeHoraireNotes = null;
#[ORM\Column(name: 'idee', type: 'text', nullable: true)] #[ORM\Column(name: 'idee', type: Types::TEXT, nullable: true)]
private ?string $idee = null; private ?string $idee = null;
#[ORM\Column(name: 'enCoursConstruction', type: 'text', nullable: true)] #[ORM\Column(name: 'enCoursConstruction', type: Types::TEXT, nullable: true)]
private ?string $enCoursConstruction = null; private ?string $enCoursConstruction = null;
/**
* @var \Doctrine\Common\Collections\Collection<int, \Chill\ChillJobBundle\Entity\Rome\Appellation>
*/
#[ORM\JoinTable(name: 'chill_csconnectes.projetprofessionnel_valide')] #[ORM\JoinTable(name: 'chill_csconnectes.projetprofessionnel_valide')]
#[ORM\ManyToMany(targetEntity: Appellation::class)] #[ORM\ManyToMany(targetEntity: Appellation::class)]
private Collection $valide; private Collection $valide;
#[ORM\Column(name: 'domaineActiviteValide', type: 'text', nullable: true)] #[ORM\Column(name: 'domaineActiviteValide', type: Types::TEXT, nullable: true)]
private ?string $domaineActiviteValide = null; private ?string $domaineActiviteValide = null;
#[ORM\Column(name: 'valideNotes', type: 'text', nullable: true)] #[ORM\Column(name: 'valideNotes', type: Types::TEXT, nullable: true)]
private ?string $valideNotes = null; private ?string $valideNotes = null;
#[ORM\Column(name: 'projetProfessionnelNote', type: 'text', nullable: true)] #[ORM\Column(name: 'projetProfessionnelNote', type: Types::TEXT, nullable: true)]
private ?string $projetProfessionnelNote = null; private ?string $projetProfessionnelNote = null;
public function __construct() public function __construct()

View File

@ -20,15 +20,15 @@ use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\Rome\AppellationRepository::class)] #[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\Rome\AppellationRepository::class)]
class Appellation implements \Stringable class Appellation implements \Stringable
{ {
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')] #[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null; private ?int $id = null;
#[ORM\Column(name: 'code', type: 'string', length: 40, unique: true)] #[ORM\Column(name: 'code', type: \Doctrine\DBAL\Types\Types::STRING, length: 40, unique: true)]
private ?string $code = ''; private ?string $code = '';
#[ORM\Column(name: 'libelle', type: 'text')] #[ORM\Column(name: 'libelle', type: \Doctrine\DBAL\Types\Types::TEXT)]
private ?string $libelle = ''; private ?string $libelle = '';
#[ORM\ManyToOne(targetEntity: Metier::class, inversedBy: 'appellations', cascade: ['persist'])] #[ORM\ManyToOne(targetEntity: Metier::class, inversedBy: 'appellations', cascade: ['persist'])]
@ -106,6 +106,6 @@ class Appellation implements \Stringable
public function __toString(): string public function __toString(): string
{ {
return $this->libelle; return (string) $this->libelle;
} }
} }

View File

@ -21,17 +21,20 @@ use Doctrine\Common\Collections\ArrayCollection;
#[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\Rome\MetierRepository::class)] #[ORM\Entity(repositoryClass: \Chill\ChillJobBundle\Repository\Rome\MetierRepository::class)]
class Metier class Metier
{ {
#[ORM\Column(name: 'id', type: 'integer')] #[ORM\Column(name: 'id', type: \Doctrine\DBAL\Types\Types::INTEGER)]
#[ORM\Id] #[ORM\Id]
#[ORM\GeneratedValue(strategy: 'AUTO')] #[ORM\GeneratedValue(strategy: 'AUTO')]
private ?int $id = null; private ?int $id = null;
#[ORM\Column(name: 'libelle', type: 'text')] #[ORM\Column(name: 'libelle', type: \Doctrine\DBAL\Types\Types::TEXT)]
private ?string $libelle = ''; private ?string $libelle = '';
#[ORM\Column(name: 'code', type: 'string', length: 20, unique: true)] #[ORM\Column(name: 'code', type: \Doctrine\DBAL\Types\Types::STRING, length: 20, unique: true)]
private ?string $code = ''; private ?string $code = '';
/**
* @var \Doctrine\Common\Collections\Collection<int, \Chill\ChillJobBundle\Entity\Rome\Appellation>
*/
#[ORM\OneToMany(targetEntity: Appellation::class, mappedBy: 'metier')] #[ORM\OneToMany(targetEntity: Appellation::class, mappedBy: 'metier')]
private readonly \Doctrine\Common\Collections\Collection $appellations; private readonly \Doctrine\Common\Collections\Collection $appellations;