Commit be28d2f8a7fe4c1a66fad7bfb6e4737b6f0bee4c
1 parent
016b4362
Exists in
master
and in
3 other branches
mise a jour fichier
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/Model/Table/SurCategoriesTable.php
@@ -8,6 +8,7 @@ use Cake\Validation\Validator; | @@ -8,6 +8,7 @@ use Cake\Validation\Validator; | ||
8 | /** | 8 | /** |
9 | * SurCategories Model | 9 | * SurCategories Model |
10 | * | 10 | * |
11 | + * @property \Cake\ORM\Association\hasMany $Users | ||
11 | */ | 12 | */ |
12 | class SurCategoriesTable extends AppTable | 13 | class SurCategoriesTable extends AppTable |
13 | { | 14 | { |
@@ -25,6 +26,11 @@ class SurCategoriesTable extends AppTable | @@ -25,6 +26,11 @@ class SurCategoriesTable extends AppTable | ||
25 | $this->table('sur_categories'); | 26 | $this->table('sur_categories'); |
26 | $this->displayField('id'); | 27 | $this->displayField('id'); |
27 | $this->primaryKey('id'); | 28 | $this->primaryKey('id'); |
29 | + | ||
30 | + $this->hasMany('Users', [ | ||
31 | + 'foreignKey' => 'groupe_thematique_id' | ||
32 | + ]); | ||
33 | + | ||
28 | } | 34 | } |
29 | 35 | ||
30 | /** | 36 | /** |