hi all,

I have a simple schema using inheritance (no broken features used afaik).

see this example (there are more types of teasers but one should do
for this example ;):

Teaser:
  tableName:            teaser_base
  indexes:
    symbol_idx:
      fields:           [ symbol ]
  columns:
    symbol:
      columnName:       symbol
      type:             string(128)
      unique:           true
    format:
      columnName:       format
      type:                                                     [ 1square, 
4squares, 6squares ]
    created_at:                                 timestamp
    updated_at:                                 timestamp

SimpleTeaser:
  tableName:            teaser_simple
  inheritance:                                  {extends: Teaser}
  columns:
    backgroundImage:
      columnName:       background_image
      type:                                                     string(36)
    headline:
      columnName:       headline
      type:                                                     string(255)
    URI:
      columnName:       uri
      type:                                                     string(128)


all models got generated and work like charms. but I expected to find
the fields 'symbol' and 'format' in the table 'teaser_base' instead I
find them in all inheriting tables where there are no foreign keys to
the teaser_base table.

I thought with doctrines inheritance I would be able to do a select on
the teaser_base table so I could iterate over all kinds of teasers
using their common informations?

am I wrong in my expectance or implementation?


cheers
/christian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to