Comments (1)
Hi @mrezauli,
The issue is that an associate()
method is not really possible for BelongsToThrough
relationships. Consider the example from the README: https://github.com/staudenmeir/belongs-to-through#usage
You can't call $post->country()->associate($country)
because Post
and Country
aren't related directly – only through User
. So you can only associate a User
to a Post
, but that's just a normal BelongsTo
relationship.
Do you know what I mean?
from belongs-to-through.
Related Issues (20)
- belongsToThrough does not take withTrashed into account when using in combination with whereHas HOT 2
- Unable to get login user data from "users" table. HOT 16
- Query Exception: Column Not Found HOT 1
- Custom foreign Key HOT 2
- staudenmeir/belongs-to-through v2.5 requires illuminate/database ~5.0 HOT 2
- Add to novapackages.com HOT 1
- Nova 4 compatibility HOT 1
- unable to install package HOT 14
- Backward compatibility break in minor version HOT 2
- BelongsToThrough when the model to recover is polymorphic (morphTo) HOT 3
- BelongsToThrough Local key doesnt seem to do anything
- BelongsToThrough Local key doesnt seem to do anything HOT 1
- Installation failed - because of conflict? HOT 2
- Cant change trough class id HOT 3
- table alias:( `alias`.`id` is null) appends to SQL WHERE clause. HOT 5
- Can't change custom foreign keys HOT 1
- Invalid Custom Column name HOT 2
- Call to undefined method BelongsToThrough::getOwnerKeyName() HOT 2
- BelongsTo > BelongsTo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from belongs-to-through.