Closed wpj16 closed 6 months ago
In the image, within the builder, you can see that the getModel() method is often used, both in the custom and official builder.
So I think all that remains is to pass the instance of the model that was joined to the setModel() method of the builder.
Good point, added and tagged a new release.
Bom ponto, adicionado e marcado um novo lançamento.
working perfectly, thanks for the updates
Yeah, that never was implemented. It was simple to add this feature, so I just tagged a new version, can you test it?
Originally posted by @luisdalmolin in https://github.com/kirschbaum-development/eloquent-power-joins/issues/177#issuecomment-2021289497
It worked correctly.
All that remains is to initialize (the model that was joined) and assign it to the eloquent builder ( $builder->setModel( new ModelJoin() ) )