Log message #3893109

# At Username Text
# Jun 13th 2016, 10:35 Ch0c4 Entity -> EntityInterface
# Jun 13th 2016, 10:34 kitcat711 et je trouve pas -20minutes que je changed es trucs et j'ai du mettre le souk
# Jun 13th 2016, 10:33 kitcat711 un souci d'entity passé dans un before save qui n'est aps du bon type
# Jun 13th 2016, 10:33 kitcat711 http://pastie.org/private/9wnw0odymq3ui7utpge5q
# Jun 13th 2016, 10:33 kitcat711 hello
# Jun 13th 2016, 10:31 Anju Je vous dis bon appétit ! A toute !
# Jun 13th 2016, 10:30 Anju Mince je dois aller manger
# Jun 13th 2016, 10:29 Anju Non non, ma faute, j'ai mal compris ta question. Il y a bien deux tables : type_environnements, et environnements
# Jun 13th 2016, 10:28 Ch0c4 car moi j'ai type, environnement et type_environnement
# Jun 13th 2016, 10:28 Anju Désolée
# Jun 13th 2016, 10:28 Anju Ah, ma faute, j'avais mal compris ta question
# Jun 13th 2016, 10:28 Ch0c4 euh on parle de 2 tables ou 3
# Jun 13th 2016, 10:27 Anju De la même façon qu'on aurait une table livres et une table auteurs. Un livre a un auteur
# Jun 13th 2016, 10:27 Ch0c4 beh non tu m'as dit qu'il y avait type en plus de environnement et types_environnements
# 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...