Doctrine 1
  1. Doctrine 1
  2. DC-912

A method that can run in a model when the model is autoloaded

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Record
    • Labels:
      None
    • Environment:
      XP Xamp

      Description

      For my project I needed to be able to reassign connections to models when they are autoloaded – this had to be able to happen during a conservative model loading process before the models had been instantiated. My solution was to build in a hook to a "autoloadSetUp" method which can be attached to any model (or class that is the base for a model).

      I will post my patch after I make a test case for it.

      Will Ferrer

        Activity

        Hide
        will ferrer added a comment -

        made test case use a static method

        Show
        will ferrer added a comment - made test case use a static method
        Hide
        will ferrer added a comment -

        fixed some compatibility issues with the test case and other test cases

        Show
        will ferrer added a comment - fixed some compatibility issues with the test case and other test cases

          People

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

            Dates

            • Created:
              Updated: