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

        Hide
        Christophe Coevoet added a comment -

        @beberlei this should be closed as it is the case since 2.2

        Show
        Christophe Coevoet added a comment - @beberlei this should be closed as it is the case since 2.2
        Show
        Steve Müller added a comment - Fixed in commit: https://github.com/doctrine/doctrine2/commit/2b334977f536e0d4f473ed1faa748d8c37de97db

          People

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

            Dates

            • Created:
              Updated:
              Resolved: