Doctrine 1
  1. Doctrine 1
  2. DC-710

doctrine:build-model does not create phpdoc for doctrine builtin attributes (sluggable, timestampable, id)

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: Attributes
    • Labels:
      None

      Description

      When defining a table with actAs attributes (Timestampable, Sluggable, ...) doctrine creates columns in the database and corresponding attributes in the model classes, but the PHPDOC in the model classes does not include getters and setters for these "automatic" attributes.
      This is unconvenient when using an IDE as the getter are not present in the auto completion.

      The enhancement would be to add the appropriate phpdoc @property tags so that symfony can generate all the @method tags.

      see http://trac.symfony-project.org/ticket/8711

      Thank you

      Kevin Hatry

        Activity

        Hide
        Jonathan H. Wage added a comment -

        I don't think this is a problem that can be patched easily, unfortunately.

        Show
        Jonathan H. Wage added a comment - I don't think this is a problem that can be patched easily, unfortunately.

          People

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

            Dates

            • Created:
              Updated: