has_and_belongs_to_may(ç¥ç§°ï¼HABTM)ã«ã¤ã㦠ç¨æ³ï¼ï¼Userãã¼ãã«ããrelated_usersãã¼ãã«ãä»ãã¦é¢é£ã¥ããããå ´åã ï¼ãã¤ãã¯ã¿ãããªé¢ä¿ï¼ Userããããããrelated_users âââââãããââââââââââ âidããâ==>ãâuser_idããããâ RelatedUser(User) âââââ¤ãããââââââââââ¤ããâââââ ânameâããã ârelated_user_idâ<== âidããâ âââââãããââââââââââããââââ⤠class User extends AppModel { var $hasAndBelongsToMany = array('RelatedUser' => array( 'className' => 'User', 'foreignKey' => 'us
{{#tags}}- {{label}}
{{/tags}}