Uploaded image for project: 'Doctrine 1'
  1. Doctrine 1
  2. DC-740 issue with multiple connection handling
  3. DC-618

[PATCH] Local key relations without modifed fields but with modified relations are not saved


    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: Connection
    • Labels:


      Assume the following test setup:

      [Email] * — 1 [Author] 1 — * [Book]

      Assume further that you have a new Email, Author and Book object. Email and book have modified fields, author does not, except for the foreign key relation.

      Now, when you save the Email object, the related Author is not saved because isModified($deep = false) returns false since no local field is modified. The solution is to pass the parameter $deep = true to isModified().

      Patch and test case are attached. No existing test is broken by this fix.

      PS: This patch fixes the correlated bug that objects with I18N behaviour are not saved if only their Translation objects are modified, but not their own fields.

      1. DC618TestCase.php
        3 kB
        Bernhard Schussek
      2. ticket_dc618.patch
        0.7 kB
        Bernhard Schussek
      1. directadmin-logo.gif
        1 kB


        There are no comments yet on this issue.


          • Assignee:
            jwage Jonathan H. Wage
            bschussek Bernhard Schussek
          • Votes:
            1 Vote for this issue
            1 Start watching this issue


            • Created: