DataMapper ã§ã® One-To-Many-Through - daily dayflower ã®ç¶ãã ä¸è¨ã¯ããã¾ã§èª¬æã®ããã®ãµã³ãã«((ã¾ããã«ã¢ããªã¨ãã¦ã¤ã³ããªã¡ã³ããããªãï¼åã« User ã Mail ã¢ãã«ã«åé¤ãã©ã°ï¼ã¨ããã available ãã£ã¼ã«ãï¼ï¼ãç¨æãã¦ãããæä½ããã ãã«ããã¨æãã))ã åç´ãª One-To-Many (belongs_to 㨠has n) ã®å ´å require 'rubygems' require 'dm-core' require 'dm-aggregates' # Collection ã® count() çããã¨ã§ä½¿ããã ### ã¢ãã«ã®å®ç¾© class User include DataMapper::Resource property :id, Serial property :name, String
{{#tags}}- {{label}}
{{/tags}}