DDD
結論 class User < Hanami::Entity attributes do # one attribute :post, Types::Entity(Post) # many attribute :posts, Types::Collection(Post) end end 経緯 HanamiでDDDっぽく書くために https://guides.hanamirb.org/entities/custom-schema/ に書い…
結論 class User < Hanami::Entity attributes do # one attribute :post, Types::Entity(Post) # many attribute :posts, Types::Collection(Post) end end 経緯 HanamiでDDDっぽく書くために https://guides.hanamirb.org/entities/custom-schema/ に書い…