Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
open-source
OSE
Commits
07beaac8
Commit
07beaac8
authored
Nov 25, 2021
by
Antony Le Courtes
Browse files
Suppression many to one structure id au niveau de l'entité affectation_recherche
parent
c641cbf4
Changes
2
Hide whitespace changes
Inline
Side-by-side
module/Application/src/Application/Entity/Db/AffectationRecherche.php
View file @
07beaac8
...
...
@@ -23,9 +23,9 @@ class AffectationRecherche implements HistoriqueAwareInterface, ImportAwareInter
protected
$id
;
/**
* @var
\Application\Entity\Db\Structure
* @var
integer
*/
protected
$structure
;
protected
$structure
Id
;
/**
* @var \Application\Entity\Db\Intervenant
...
...
@@ -49,13 +49,13 @@ class AffectationRecherche implements HistoriqueAwareInterface, ImportAwareInter
/**
* Set structure
*
* @param
\Application\Entity\Db\Structure $structure
* @param
$structureId interger
*
* @return AffectationRecherche
*/
public
function
setStructure
(
\
Application\Entity\Db\Structure
$structure
=
null
)
public
function
setStructure
Id
(
$structure
Id
)
{
$this
->
structure
=
$structure
;
$this
->
structure
Id
=
$structure
Id
;
return
$this
;
}
...
...
@@ -65,11 +65,11 @@ class AffectationRecherche implements HistoriqueAwareInterface, ImportAwareInter
/**
* Get structure
*
* @return
\Application\Entity\Db\S
tructure
* @return
integer $s
tructure
Id
*/
public
function
getStructure
()
public
function
getStructure
Id
()
{
return
$this
->
structure
;
return
$this
->
structure
Id
;
}
...
...
module/Application/src/Application/Entity/Db/Mapping/Application.Entity.Db.AffectationRecherche.dcm.xml
View file @
07beaac8
...
...
@@ -20,7 +20,7 @@
<field
name=
"histoDestruction"
type=
"datetime"
column=
"HISTO_DESTRUCTION"
nullable=
"true"
/>
<field
name=
"histoModification"
type=
"datetime"
column=
"HISTO_MODIFICATION"
nullable=
"false"
/>
<field
name=
"sourceCode"
type=
"string"
column=
"SOURCE_CODE"
length=
"100"
nullable=
"true"
/>
<field
name=
"structure
_i
d"
type=
"string"
column=
"STRUCTURE_ID"
length=
"100"
nullable=
"true"
/>
<field
name=
"structure
I
d"
type=
"string"
column=
"STRUCTURE_ID"
length=
"100"
nullable=
"true"
/>
<many-to-one
field=
"source"
target-entity=
"UnicaenImport\Entity\Db\Source"
>
<join-columns>
<join-column
name=
"SOURCE_ID"
referenced-column-name=
"ID"
/>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment