-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Updating a model fails after fetching its related records #13964
Labels
Comments
zsilbi
pushed a commit
to zsilbi/cphalcon
that referenced
this issue
Apr 12, 2019
4 tasks
I wrote tests to confirm the issue and it failed in CI with a rather strange error message.
|
zsilbi
changed the title
Updating a model fails after fetching its related records
[BUG] Updating a model fails after fetching its related records
Apr 15, 2019
zsilbi
pushed a commit
to zsilbi/cphalcon
that referenced
this issue
Apr 15, 2019
Added specific tests for issue phalcon#13964.
4 tasks
zsilbi
pushed a commit
to zsilbi/cphalcon
that referenced
this issue
Apr 16, 2019
Added specific tests for issue phalcon#13964.
Resolved |
Actually my bad, this was not resolved 100%. We need to do a lot more regression testing with the proposed fix from the PR attached to this issue. |
zsilbi
pushed a commit
to zsilbi/cphalcon
that referenced
this issue
Apr 26, 2019
Added tests to confirm relation storage cache Added tests for issue phalcon#13964
zsilbi
pushed a commit
to zsilbi/cphalcon
that referenced
this issue
May 2, 2019
Added tests to confirm relation storage cache Added tests for issue phalcon#13964
4 tasks
zsilbi
pushed a commit
to zsilbi/cphalcon
that referenced
this issue
May 2, 2019
Added tests to confirm relation storage cache Added tests for issue phalcon#13964
Resolved in #14035 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When fetching a record (
Robots
) and getting it's related models (RobotParts
) aRuntimeException
is being thrown when trying to save/update afterwards.My observations:
hasMany
orhasManyToMany
type of relations.RobotParts
table$robot->getRobotParts()
works fine)Output error when using hasMany
Output error when using hasManyToMany
Script to reproduce the issue (only the relevant parts)
Current workaround:
It's a widely used feature and it's very easy to reproduce so I think - and hope - that it must be some kind of incompability, otherwise it would have been discovered previously.
Details
The text was updated successfully, but these errors were encountered: