diff --git a/src/Model/Table/SurCategoriesTable.php b/src/Model/Table/SurCategoriesTable.php index 196dc1d..32afedc 100755 --- a/src/Model/Table/SurCategoriesTable.php +++ b/src/Model/Table/SurCategoriesTable.php @@ -8,6 +8,7 @@ use Cake\Validation\Validator; /** * SurCategories Model * + * @property \Cake\ORM\Association\hasMany $Users */ class SurCategoriesTable extends AppTable { @@ -25,6 +26,11 @@ class SurCategoriesTable extends AppTable $this->table('sur_categories'); $this->displayField('id'); $this->primaryKey('id'); + + $this->hasMany('Users', [ + 'foreignKey' => 'groupe_thematique_id' + ]); + } /** -- libgit2 0.21.2