GithubHelp home page GithubHelp logo

Comments (4)

odan avatar odan commented on June 18, 2024 1

In my eBook I explain the Clean Architecture much more in detail.

The key point is to "think" and build software in use cases. So it's a complete "mind shift", if you will.

Here is a collection of very similar questions where you can also find some answers. I hope it helps.

from slim4-skeleton.

odan avatar odan commented on June 18, 2024

Hi @curVV

Yes, you don't need to reinvent an ORM.

The documentation of this project contains more details.
This page explains more about Repositories.

In my blog and this Slim 4 eBook you can take a deeper look at these topics. Example: Slim 4 - Cake QueryBuilder

And last but not least: If you have a specific question, you can file an issue here or consult me directly.

from slim4-skeleton.

curVV avatar curVV commented on June 18, 2024

Hi, sorry I wasn't being clear. I've read the documentation and I understand how to use joins using the query builder. But it is not clear to me how to implement these relationships into the structure set out in the skeleton.

Say for instance I have a table called articles that contain articles that belong to users. If I want to implement this relationship in the current structure of the skeleton, how would you go about doing this? The UserRepository->getUserById() method returns a UserData object. Should I add a UserData->articles() method that would call something like ArticlesRepository->getArticlesbyUserId($this->id) so I could do $user->articles()? But that just means a separate query, no joins performed. That does not seem efficient to me. Trying to think of other ways...

from slim4-skeleton.

curVV avatar curVV commented on June 18, 2024

Makes sense, thank you.

from slim4-skeleton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.