Doctrine 1
  1. Doctrine 1
  2. DC-749

Doctrine_Record#getMutators() triggers PHP notice

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: Record
    • Labels:
      None
    • Environment:
      Doctrine SVN 1.2 r7676

      Description

      When calling getMutators() on an instance of Doctrine_Record (eg. $user = new User();), if it hasn't any defined custom mutator yet, we get a

      Notice: Undefined index: User in /[...]/Doctrine/Record.php on line 1312
      

      whereas there's no error with getAccessors() (I suppose it was fixed for the second one but not copied to the first one).

      Patch is really simple! please see attachment

      Regards

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: