Commit f04104289c75bfb8cca9a0114e4ed97522f6d945
Exists in
master
and in
3 other branches
Merge branch 'dev' of https://gitlab.irap.omp.eu/epallier/labinvent into dev
Showing
2 changed files
with
15 additions
and
0 deletions
Show diff stats
src/Model/Table/MaterielsTable.php
... | ... | @@ -23,6 +23,7 @@ use Cake\ORM\Association\BelongsTo; |
23 | 23 | * @property \Cake\ORM\Association\HasMany $Emprunts |
24 | 24 | * @property \Cake\ORM\Association\HasMany $Suivis |
25 | 25 | * @property \Cake\ORM\Association\BelongsTo $Fournisseurs |
26 | + * @property \Cake\ORM\Association\BelongsTo $Users | |
26 | 27 | */ |
27 | 28 | class MaterielsTable extends AppTable { |
28 | 29 | |
... | ... | @@ -79,6 +80,14 @@ class MaterielsTable extends AppTable { |
79 | 80 | $this->belongsTo('Fournisseurs', [ |
80 | 81 | 'foreignKey' => 'fournisseur_id' |
81 | 82 | ]); |
83 | + | |
84 | + // EP 9/6/17 added : | |
85 | + $this->belongsTo('Users', [ | |
86 | + 'foreignKey' => 'gestionnaire_id' | |
87 | + ]); | |
88 | + $this->belongsTo('Documents', [ | |
89 | + 'foreignKey' => 'photo_id' | |
90 | + ]); | |
82 | 91 | } |
83 | 92 | |
84 | 93 | /** | ... | ... |
src/Model/Table/SuivisTable.php
... | ... | @@ -61,6 +61,12 @@ class SuivisTable extends AppTable |
61 | 61 | $this->hasMany('Fichemetrologiques', [ |
62 | 62 | 'foreignKey' => 'suivi_id' |
63 | 63 | ]); |
64 | + /* | |
65 | + * EP remarque 9/6/17 : il manque peut-etre ceci pour formule_id, sans doute en cours pour le LATMOS ? | |
66 | + $this->belongsTo('Table?', [ | |
67 | + 'foreignKey' => 'formule_id' | |
68 | + ]); | |
69 | + */ | |
64 | 70 | } |
65 | 71 | |
66 | 72 | /** | ... | ... |