Doctrine 1
  1. Doctrine 1
  2. DC-339

Documentation unclear about linking inherited objects

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None

      Description

      The (very nice) doctrine documentation fails to mention anything about how inherited objects handle relations.

      I.e. if I got the model:
      Entity:
      columns:
      username: string(20)
      password: string(16)
      created_at: timestamp
      updated_at: timestamp

      User:
      inheritance:
      extends: Entity
      type: column_aggregation
      keyField: type
      keyValue: 1

      Group:
      inheritance:
      extends: Entity
      type: column_aggregation
      keyField: type
      keyValue: 2

      Topic:
      content: string
      entity_id: integer
      relations:
      User:
      class: Entity
      local: entity_id
      foreign: id

      Can I then define both users and groups to link to Topic?

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated: