Giter Site home page Giter Site logo

Comments (7)

juban avatar juban commented on May 23, 2024

Thanks for your report.

from yii2-save-relations-behavior.

juban avatar juban commented on May 23, 2024

@magicaner Could you provide any use case or example of that issue? Thx.

from yii2-save-relations-behavior.

magicaner avatar magicaner commented on May 23, 2024

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.

magicaner avatar magicaner commented on May 23, 2024

i was able to repeat it. it happens if all following cases are true:

  1. previous and new value is not empty
  2. related model for old and new value are exists
  3. relation type is "hasOne"

from yii2-save-relations-behavior.

juban avatar juban commented on May 23, 2024

@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.

juban avatar juban commented on May 23, 2024

@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.

juban avatar juban commented on May 23, 2024

Fixed with 49cae2c

from yii2-save-relations-behavior.

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.