-
Notifications
You must be signed in to change notification settings - Fork 411
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
Possible bug in object relation code? #603
Comments
Here's the commit, that brought in this |
After applying the patch above, which removes the
This test is also brought in by the same commit that brought in the |
Ok, these two test cases differs. Mine has only one PK and the other has a composite PK. Between this two ways of having a PK the save method of the collection |
more exact: this behaviour of unlinking the |
Added a test set that proves the bug.
I've created a testcase that should prove the bahaviour.
https://github.com/MArcJ/Propel/blob/0fe5e3eacc04c9d715ea03e5cb6a6ae214590626/test/testsuite/generator/builder/om/GeneratedObjectMoreRelationTest.php
TestSuite output:
Is this a desired behaviour? If I apply the following patch, then the testcase is OK.
I believe through this
unserialize(serialize(
call the next callRemoved->set{$relCol}(null);
doesn't have any effect, does it?The text was updated successfully, but these errors were encountered: