Comments (7)
Thanks for your report.
from yii2-save-relations-behavior.
@magicaner Could you provide any use case or example of that issue? Thx.
from yii2-save-relations-behavior.
i am trying to repeat the error, but cant for some reason. not sure how to repeat the error. but i got those errors multiple times.
here people talking about similar problem:
http://stackoverflow.com/questions/3834791/fatal-error-nesting-level-too-deep-recursive-dependency#answer-19097159
from yii2-save-relations-behavior.
i was able to repeat it. it happens if all following cases are true:
- previous and new value is not empty
- related model for old and new value are exists
- relation type is "hasOne"
from yii2-save-relations-behavior.
@magicaner Yes, I figured that out already.
But the scenario you are suggesting is not enough to trigger the issue.
There must be some cross-reference relations affecting the behavior.
Don't get me wrong, I'm not saying there is no issue here (I will definitely fix that), but I'm struggling to find a proper model setup to reproduce that.
Could you give me (even partially) your models definitions involved in that issue?
Thank you for your help.
from yii2-save-relations-behavior.
@magicaner OK, never mind, I found a way to reproduce the issue.
Bug will be fixed in an upcoming release.
Thanks again.
from yii2-save-relations-behavior.
Fixed with 49cae2c
from yii2-save-relations-behavior.
Related Issues (20)
- Updating multiple records in nested related model HOT 3
- Add the ability to retrieve old relations values
- Add the ability to retrieve and mark dirty relations
- hasOne relation not rollback when owner model is not valid and relation are inserted HOT 3
- "private" replace with "protected".
- Junction Table Extra Columns forces delete/insert on existing records
- usage question maybe a bug? HOT 3
- feature request - work only existing models, or create new
- 1:1 connection - feature request
- hasOne relation via() is not working as expected
- Error Unable to link models: the primary key of
- Nested model changes does not save if parent model not dirty. HOT 1
- Only write, not rewrite
- Don't work with some relations HOT 5
- Fail when parent model has more than one PRIMARY KEY
- Using behavior for relations HOT 1
- Load relations with Json Data
- Enh: Аdjust access to save the relation HOT 4
- unlink and link should also use the via on conditions of the relation
- Unitentionally triggered afterSave on related model
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 yii2-save-relations-behavior.