Coder Social home page Coder Social logo

Comments (8)

hwbrzzl avatar hwbrzzl commented on July 18, 2024 1

You want to load user, club, player_types to player at the same time, right? You can try below:

facades.Orm.Query().With("User").With("Club").With("PlayerType").Find(&player)

The document

from goravel.

alanreynosov avatar alanreynosov commented on July 18, 2024 1

Awesome, much appreciated

from goravel.

hwbrzzl avatar hwbrzzl commented on July 18, 2024

Sorry, I'm not clear about your question, can you show your expected code?

from goravel.

iconmedios-dev avatar iconmedios-dev commented on July 18, 2024

Sure, let me clear.

How to make a query for player that shows other multiple associations, In the example works with user because user is created and hydrated in the same code block, but in the case of club and player_types are returned as null.

from goravel.

alanreynosov avatar alanreynosov commented on July 18, 2024

also, is there any equivalent feature as protectedProperties ? in order to prevent to display sensitive data as user.password as example

from goravel.

alanreynosov avatar alanreynosov commented on July 18, 2024

iconmedios-dev is also me, different PC

from goravel.

alanreynosov avatar alanreynosov commented on July 18, 2024

just like laravel, awesome!!, thanks so much

about the model protectedProperties is there something ?

from goravel.

hwbrzzl avatar hwbrzzl commented on July 18, 2024

just like laravel, awesome!!, thanks so much

about the model protectedProperties is there something ?

Like below:

type User struct {
  Name string `gorm:"-"`
}

from goravel.

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.