Doctrine 1
  1. Doctrine 1
  2. DC-934

One-to-one relationship with cascading deletion and softdelete creates empty records

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.3
    • Fix Version/s: None
    • Component/s: Record
    • Labels:
      None
    • Environment:
      Ubuntu 10.10, PHP 5.3.3

      Description

      When using softdelete behaviour with cascading deletion on a one-to-one relationship, Doctrine will create a 'child' record if it doesn't exist already, during the cascading deletion. Eg:

      • Models Foo, Bar, both SoftDelete
      • Foo hasOne Bar
      • $myFoo->delete()

      Result is:

      • $myFoo->deleted_at is set correctly as expected
      • New Bar record is created & saved in the process (but is not set to deleted)

      Is this expected behaviour? I've attached a test case script, tested against export from SVN of Doctrine 1.2.3 that demonstrates this.

        Activity

        Rich Sage created issue -
        Hide
        marius added a comment -

        I can confirm this issue on Ubuntu 11.10 PHP 5.3.6-13ubuntu3.2

        Show
        marius added a comment - I can confirm this issue on Ubuntu 11.10 PHP 5.3.6-13ubuntu3.2

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-934, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Rich Sage
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: