Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-699

ProxyFactory: allow to overwrite $_proxyClassTemplate to allow custom criterias during execution of _load()

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0-BETA3, 2.0-BETA4, 2.0
    • Fix Version/s: None
    • Component/s: ORM
    • Security Level: All
    • Labels:
      None
    • Environment:
      Debian 5 (64bit), PostgreSql 8.3, ZendServer 5.0.2, PHP 5.3.2

      Description

      It would be nice to set custom criteria to be used during _load(), so that not only the identifier is used, but also this criteria (specially thinking about a SoftDelete behaviour where relations are filtered BEFORE they're actually loaded).

      Of course, a note needs to be added explaining the risk of modifying the proxy class structure.

        Issue Links

          Activity

          Hide
          Benjamin Eberlei added a comment -

          This is the wrong extension point for something like soft-delete. It needs to be done inside the Persister. A ticket exists to add the possibility to specifiy your own persister, this would suffice to implement SoftDelete.

          Show
          Benjamin Eberlei added a comment - This is the wrong extension point for something like soft-delete. It needs to be done inside the Persister. A ticket exists to add the possibility to specifiy your own persister, this would suffice to implement SoftDelete.

            People

            • Assignee:
              Roman S. Borschel
              Reporter:
              Michael Zach
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: