What about models?

Is there something like a model layer? I don’t see anything in the guide. It seems like there is a missing layer between ROM::Relation[:sql] and actions?

Thanks.

1 Like

Seems like support for the persistence layer is coming in Hanami 2.1 V2.0: Getting Started | Hanami Guides

1 Like

@gdonald official persistence/model integration will be added in Hanami 2.1. For the time being you can use whatever you prefer. In case of rom you can use repositories that can return automatically mapped or custom structs.

Here’s a sample app with this type of setup GitHub - decafsucks/decafsucks: Rebuilding decafsucks.com as an OSS Hanami 2.0 example app