Doctrine 1
  1. Doctrine 1
  2. DC-826

Doctrine_Collection::replace() EASY PATCH!

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: Record
    • Labels:
      None
    • Environment:
      linux, symfony-framework. I dont know the Version but Revision is 7490

      Description

      Record::replace() exists already.

      but Doctrine_Collection::replace() does not exist.

      I just copied the Doctrine_Collection::save() function, renamed it to replace and replaced
      $record->save($conn);
      with
      $record->replace($conn);

      WORKS GREAT!
      Please include a replace for Doctrine_Collection.
      Its really an easy patch!

      By the way ... why is there no component for collection in the above select-field?

        Activity

        Hide
        Jonathan H. Wage added a comment -
        Show
        Jonathan H. Wage added a comment - Fixed in http://trac.doctrine-project.org/changeset/7686 Thanks, Jon

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Severin Puschkarski
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: