ã¤ã³ãããã¯ã·ã§ã³ CakePHPã®hasAndBelongsToManyï¼ä»¥ä¸habtmã¨å¼ã¶ï¼æ©æ§ã¯ãæå¾ ããæ¯ãèããããªããã¨ãããã¾ãã CakePHPã¯ãã®ããã¥ã¢ã«ã§ãhabtmãè¤éã«ãªã£ãã¨ãã«ã¤ãã¦ããè¨åãã¦ãã¾ãï¼ http://book.cakephp.org/ja/view/1034/Saving-Related-Model-Data-HABTM ã¾ããjoin table (çµåã®æ å ±ãè¨è¿°ãããã¼ãã«) ã« (é¢ä¿ã®ä½ææå»ããã¡ã¿ãã¼ã¿ãªã©ã®) ãã£ã¼ã«ããä»ãå ãããå ´åã«ãè¨åãã¦ããã¾ããããHABTM ã® join table ã«ä»ãå ããäºãã§ãã¾ããããã£ã¨ç°¡åãªæ¹æ³ãããã¾ãã 2ã¤ã®ã¢ãã«ã® HABTM é¢ä¿ã¯ãæ¬å½ã¯ãhasMany 㨠belongTo ã«ãã3ã¤ã®ã¢ãã«ã®é¢ä¿ãçç¥ãã¦è¡¨ãããã®ã§ãã ãã®ããã«ãhasManyã¨be
{{#tags}}- {{label}}
{{/tags}}