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
Deploying new content_type (b) with many_to_many relationship with existing content_type (a) doesn't add empty related property to content_entries already created.
#213
Open
greyskin opened this issue
Jul 26, 2022
· 0 comments
Workaround: Create an entry under content_type_b and relate it to the content_type_a entry. I expect this populates the content_type_a entry with the missing content_entry_b property. The relationship can then be removed and the content_entry saved and the above code will not produce the error. (Tested)
I had thought that pulling the content_entries via wagon and then re-deploying would fix the issue but it does not. Interestingly, the content_entries are pulled including the missing content_type_b property in their data, but when reployed, the behaviour of findEntry remains the same. Only the workaround described above seems to change the behaviour.
Should not the deployment of content_type_b update the existing content_type_a entries to include the new content_type_b property?
The text was updated successfully, but these errors were encountered:
greyskin
changed the title
Deploying new content_type (b) with many_to_many relationship with existing content_type (a) doesn't update definition of content_entries already created.
Deploying new content_type (b) with many_to_many relationship with existing content_type (a) doesn't empty related property to content_entries already created.
Jul 26, 2022
greyskin
changed the title
Deploying new content_type (b) with many_to_many relationship with existing content_type (a) doesn't empty related property to content_entries already created.
Deploying new content_type (b) with many_to_many relationship with existing content_type (a) doesn't add empty related property to content_entries already created.
Jul 26, 2022
Steps to reproduce:
Workaround: Create an entry under content_type_b and relate it to the content_type_a entry. I expect this populates the content_type_a entry with the missing content_entry_b property. The relationship can then be removed and the content_entry saved and the above code will not produce the error. (Tested)
I had thought that pulling the content_entries via wagon and then re-deploying would fix the issue but it does not. Interestingly, the content_entries are pulled including the missing content_type_b property in their data, but when reployed, the behaviour of
findEntry
remains the same. Only the workaround described above seems to change the behaviour.Should not the deployment of content_type_b update the existing content_type_a entries to include the new content_type_b property?
The text was updated successfully, but these errors were encountered: