Log message #3893086

# At Username Text
# Jun 13th 2016, 10:27 Anju Une table type et une table environnements
# Jun 13th 2016, 10:27 Anju Mais j'ai que deux tables !
# Jun 13th 2016, 10:27 Ch0c4 paint ou autre
# Jun 13th 2016, 10:27 Ch0c4 fais moi un schéma sur paint de tes 3 tables
# Jun 13th 2016, 10:26 Ch0c4 comprend pas
# Jun 13th 2016, 10:26 Anju Ah mais non, c'est pas une table de liaison hein
# Jun 13th 2016, 10:26 Ch0c4 http://book.cakephp.org/3.0/en/orm/associations.html#belongstomany-associations
# Jun 13th 2016, 10:25 Ch0c4 sauf si j'ai louper un chapitre
# Jun 13th 2016, 10:25 Ch0c4 normalement
# Jun 13th 2016, 10:25 Ch0c4 c'est types_environnement (id, type_id, environnement_id), types (id, name, etc...) et environnement(id, name, ....)
# Jun 13th 2016, 10:23 Ch0c4 donc c'est hasbelong to many
# Jun 13th 2016, 10:23 Anju Oui
# Jun 13th 2016, 10:23 Ch0c4 mais attend donc tu as une table type alors
# Jun 13th 2016, 10:23 Anju Surtout que j'ai deux autres tables (Opérations, TypeOpérations) qui sont reliées de la même manière et qui fonctionnent très bien
# Jun 13th 2016, 10:20 Anju Un environnement a un type
# Jun 13th 2016, 10:19 Ch0c4 ok my bad
# Jun 13th 2016, 10:19 Anju type_id de Environnements faisant référence à id de Type_environnements
# Jun 13th 2016, 10:18 Anju Dans ma BDD j'ai type_environnements [id, name], et environnements [id, type_id, etc]
# Jun 13th 2016, 10:18 Ch0c4 ?
# Jun 13th 2016, 10:18 Ch0c4 dans la BDD tu as TypeEnvironnements.type_id
# Jun 13th 2016, 10:17 Ch0c4 donc il faut résumer
# Jun 13th 2016, 10:16 Anju Ces deux tables ne prennent pas en compte leur association :/
# Jun 13th 2016, 10:16 Anju Mais ça ne change rien
# Jun 13th 2016, 10:15 Anju J'ai modifié type en type_id
# Jun 13th 2016, 10:14 Ch0c4 avec ça dans l'autre classe $this->primaryKey('id');
# Jun 13th 2016, 10:14 Ch0c4 je vois ça qui me gène $this->belongsTo('TypeEnvironnements', [ 'foreignKey' => 'type',
# Jun 13th 2016, 10:10 Anju Ca me bloque totalement...
# Jun 13th 2016, 10:10 Anju Personne pour m'aider ? :(
# Jun 13th 2016, 09:43 Anju Oui
# Jun 13th 2016, 09:40 Nicolas13860 initialize s'execute bien ?
# Jun 13th 2016, 09:34 Anju Quand je debugue mon model Environnements, il n'a aucune association
# Jun 13th 2016, 09:34 Anju Par exemple celle-ci
# Jun 13th 2016, 09:34 Anju http://pastebin.com/SU4H8p7K
# Jun 13th 2016, 09:33 Anju J'ai un soucis également, les tables de mon plugin ne prennent plus en compte leurs associations respectives, et je ne comprends pas pourquoi...
# Jun 13th 2016, 09:30 kitcat711 c t un exemple
# Jun 13th 2016, 09:28 Skeletyon bha t'as que 3 commits, je vois pas ou est le soucis
# Jun 13th 2016, 09:28 kitcat711 cherry pick ...bien sur.. voyons voyons
# Jun 13th 2016, 09:27 Skeletyon BHa au pire tu cherry-pick tes commits hein
# Jun 13th 2016, 09:24 kitcat711 ok, c'est ce que j'avais compris, mais j'avais l'impression d'en perdre des bouts
# Jun 13th 2016, 09:23 Ch0c4 +1
# Jun 13th 2016, 09:22 Skeletyon Donc je dirait les 3