Doctrine 2 - ORM
  1. Doctrine 2 - ORM
  2. DDC-1235

Provide fluent interfaces in stub methods

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Or maybe some template-files could be provided for all stubs.

      private static $_setMethodTemplate =
      '/**
       * <description>
       *
       * @param <variableType>$<variableName>
       */
      public function <methodName>(<methodTypeHint>$<variableName>)
      {
      <spaces>$this-><fieldName> = $<variableName>;
      
      <spaces>return $this;</spaces>
      }';
      

        Activity

        Andreas Hörnicke created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 12757 ] jira-feedback [ 13941 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback [ 13941 ] jira-feedback2 [ 15805 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 15805 ] jira-feedback3 [ 18061 ]
        Steve Müller made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2 [ 10157 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Andreas Hörnicke
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: