Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mes-formations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
mes-formations
Commits
6856c74e
You need to sign in or sign up before continuing.
Commit
6856c74e
authored
3 months ago
by
Jean-Philippe Metivier
Browse files
Options
Downloads
Patches
Plain Diff
Cleaning
parent
4859b4ea
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
module/Agent/src/Entity/Db/Agent.php
+1
-27
1 addition, 27 deletions
module/Agent/src/Entity/Db/Agent.php
module/Agent/src/Entity/Db/Mapping/Agent.Entity.Db.Agent.dcm.xml
+0
-1
0 additions, 1 deletion
...Agent/src/Entity/Db/Mapping/Agent.Entity.Db.Agent.dcm.xml
with
1 addition
and
28 deletions
module/Agent/src/Entity/Db/Agent.php
+
1
−
27
View file @
6856c74e
...
...
@@ -46,25 +46,17 @@ class Agent implements
private
?string
$sexe
=
null
;
private
?DateTime
$dateNaissance
=
null
;
private
?string
$login
=
null
;
private
?string
$harpId
=
null
;
private
?string
$email
=
null
;
private
?string
$tContratLong
=
null
;
private
Collection
$affectations
;
/** AgentAffectation[] */
private
Collection
$echelons
;
/** AgentEchelon[] */
private
Collection
$grades
;
/** AgentGrade[] */
private
Collection
$quotites
;
/** AgentQuotite[] */
private
Collection
$statuts
;
/** AgentStatut[] */
private
Collection
$validateurs
;
private
?AbstractUser
$utilisateur
=
null
;
private
Collection
$fiches
;
/** FichePoste[] */
private
Collection
$fichiers
;
/** Fichier[] */
...
...
@@ -78,7 +70,6 @@ class Agent implements
public
function
__construct
()
{
$this
->
fiches
=
new
ArrayCollection
();
$this
->
statuts
=
new
ArrayCollection
();
$this
->
missionsSpecifiques
=
new
ArrayCollection
();
$this
->
fichiers
=
new
ArrayCollection
();
...
...
@@ -91,18 +82,12 @@ class Agent implements
$this
->
validations
=
new
ArrayCollection
();
}
/**
* @return string
*/
public
function
generateTag
():
string
{
return
'Agent_'
.
$this
->
getId
();
}
/** Accesseur en lecteur de l'identification (importer de la base source) ********************/
/** Todo remettre un type une fois l'identifiant stabilisé (URN:string ? UCN: int) **/
public
function
getId
()
public
function
getId
():
?string
{
return
$this
->
id
;
}
...
...
@@ -147,17 +132,6 @@ class Agent implements
return
$this
->
email
;
}
public
function
getHarpId
():
?int
{
return
$this
->
harpId
;
}
public
function
isContratLong
():
bool
{
return
$this
->
tContratLong
===
'O'
;
}
/** Collections importées *****************************************************************************************/
/** @return AgentAffectation[] */
...
...
This diff is collapsed.
Click to expand it.
module/Agent/src/Entity/Db/Mapping/Agent.Entity.Db.Agent.dcm.xml
+
0
−
1
View file @
6856c74e
...
...
@@ -14,7 +14,6 @@
<field
name=
"dateNaissance"
column=
"date_naissance"
type=
"datetime"
/>
<field
name=
"login"
column=
"login"
length=
"256"
/>
<field
name=
"email"
column=
"email"
length=
"1024"
/>
<field
name=
"tContratLong"
column=
"T_CONTRAT_LONG"
length=
"1"
nullable=
"true"
/>
<one-to-many
target-entity=
"Agent\Entity\Db\AgentQuotite"
mapped-by=
"agent"
field=
"quotites"
/>
<one-to-many
target-entity=
"Agent\Entity\Db\AgentAffectation"
mapped-by=
"agent"
field=
"affectations"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment