Doctrine 1
  1. Doctrine 1
  2. DC-486

Taggable extension bound to inherited class also binds to all classes, which extend the base one

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: Extensions
    • Labels:
      None
    • Environment:
      php5.2.11, symfony 1.4, Doctrine 1.2, Taggable 1.0

      Description

      This is my schema.yml:

      Tale:
      actAs:
      Taggable:
      columns: # there are some not interesting columns

      FolkTale:
      inheritance:
      extends: Tale
      type: column_aggregation
      keyField: type
      keyValue: folk
      columns:
      folk_id: integer
      relations:
      Folk:
      class: Folk
      local: folk_id
      foreign: id
      type: one
      onDelete: CASCADE

      AuthoredTale:
      inheritance:
      extends: Tale
      type: column_aggregation
      keyField: type
      keyValue: authored
      columns:
      author_id: integer
      relations:
      Author:
      class: Author
      local: author_id
      foreign: id
      type: one
      onDelete: CASCADE

      When I do ./symfony doctrine:build --all I see three *_taggable_tag table in my DB (folk_tale_taggable_tag, authored_tale_taggable_tag and tale_tag) instead of expected one tale_tag.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: