Doctrine 1
  1. Doctrine 1
  2. DC-903

Make Doctrine_Record_UnknownPropertyException error more descriptive

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Attributes
    • Labels:
      None
    • Environment:
      Ubuntu 10.10

      Description

      If I have a Doctrine object and I try something like $book->getNonexistantThing(), I always get an error like this:
      PHP Fatal error: Class 'Doctrine_Record_UnknownPropertyException' not found in /home/jason/projects/mcif/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record/Filter/Standard.php on line 55

      It makes it hard to track down the source of the error. Why not have the error include the offending method call?

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: