You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there are 3 tables with one-to-one relationship to one and another, first 2 table data are saved in DB but the third ones data is not saved.
In the example, we have Table A, Table B and Table C. Where Table A have one-to-one relationship with Table B, Table B have one-to-one relationship with Table C. We have added the necessary code in Table A and Table B save method. When executed we can see records created for Table A and Table B, but not for the Table C. We encountered this bug when we are migrating to the latest Phalcon version. With Phalcon 4.2 with PHP 7.4, we was able to save data for all 3 tables with this setup.
To Reproduce
We checked the event triggers as in the below sample code, the output is attached as a screenshot and the PDF of the output. Output.pdf
Describe the bug
When there are 3 tables with one-to-one relationship to one and another, first 2 table data are saved in DB but the third ones data is not saved.
In the example, we have Table A, Table B and Table C. Where Table A have one-to-one relationship with Table B, Table B have one-to-one relationship with Table C. We have added the necessary code in Table A and Table B save method. When executed we can see records created for Table A and Table B, but not for the Table C. We encountered this bug when we are migrating to the latest Phalcon version. With Phalcon 4.2 with PHP 7.4, we was able to save data for all 3 tables with this setup.
To Reproduce
We checked the event triggers as in the below sample code, the output is attached as a screenshot and the PDF of the output.
Output.pdf
Steps to reproduce the behavior:
Expected behavior
When saving the Table A, Table B and Table C, data should be saved in the database.
Screenshots
Details
Additional context
N/A
The text was updated successfully, but these errors were encountered: